flash on 2012-12-6

by asou_jp
♥0 | Line 14 | Modified 2012-12-06 12:55:20 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.LineScaleMode;
    import flash.display.Shape;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var shape:Shape = new Shape();
            addChild(shape);
            shape.graphics.lineStyle(1,0xFF0000,1, false, LineScaleMode.NONE);
            shape.graphics.drawRect(0,0,10,10);
            
            shape.scaleX = shape.scaleY = 10;
        }
    }
}