integer operation test

by John_Blackburne
♥0 | Line 14 | Modified 2012-09-25 20:54:05 | MIT License
play

ActionScript3 source code

/**
 * Copyright John_Blackburne ( http://wonderfl.net/user/John_Blackburne )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/n2Uy
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
        
        public var tf:TextField;
        public var a:int, b:int, c:int;
        public function FlashTest() {
            // write as3 code here..
            tf = new TextField();
            addChild(tf);
            
            a = 23; b = 5; c = a / b * b;
            tf.text = String(c);
            
        }
    }
}