flash on 2011-10-9

by johnrnyquist
♥1 | Line 18 | Modified 2011-10-09 03:12:53 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextFieldAutoSize;
    import flash.text.TextField;
    import flash.utils.describeType;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var tx:XML = describeType(Object);
            var t:TextField = new TextField();
            addChild(t);
            t.text = "hello";
            t.text = tx;
            t.autoSize = TextFieldAutoSize.LEFT;
            tx = describeType(t);
            t.text = tx;
            
            
        }
    }
}