flash on 2013-6-12

by Andras
♥0 | Line 17 | Modified 2013-06-14 20:42:42 | 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/lDJE
 */

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(0, 50, 150, 70);
            addChild(s);
            var t:TextField = new TextField();
            addChild(t);
            t.text = "//////////"+s.width;
            s.x=270
            s.x=Infinity
        }
    }
}

Forked