forked from: flash on 2013-6-12

by Andras forked from flash on 2013-6-12 (diff: 1)
♥0 | Line 15 | Modified 2013-06-14 20:36:11 | MIT License
play

ActionScript3 source code

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

// forked from Andras's flash on 2013-6-12
package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var s:Sprite = new Sprite();
            s.graphics.beginFill(0xff0000);
            s.graphics.drawRect(-50, 50, 150, 50);
            addChild(s);
            var t:TextField = new TextField();
            addChild(t);
            t.text = "//////////"+s.width;
        }
    }
}