flash on 2013-11-17

by mwelsh
♥0 | Line 14 | Modified 2013-11-17 13:30:20 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var a:int = 0x7fffffff;
            var b:int = a+2;
            var tf:TextField = new TextField();
            addChild(tf);
            tf.autoSize = flash.text.TextFieldAutoSize.LEFT;
            tf.text = ((a+2)|0).toString() + "\n" + b;
        }
    }
}