forked from: flash on 2013-7-24

by tsu_droid
テキストフィールドのデフォルトサイズは100×100なので幅は465にした。
♥0 | Line 16 | Modified 2013-07-24 16:05:24 | MIT License
play

ActionScript3 source code

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

// forked from actionsmile's flash on 2013-7-24
package {
    import flash.display.Shape;
    import flash.text.TextField;
    import flash.utils.describeType;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public var items : Vector.<Shape>;
        
        public function FlashTest() {
            // write as3 code here..
            var description : XML = describeType(this);
            var textfield : TextField = new TextField();
            textfield.width = 465;
            this.addChild(textfield);
            
            textfield.text = description.toXMLString();
        }
    }
}