lineTo, moveTo test post

by regepan
♥0 | Line 16 | Modified 2010-05-26 00:14:12 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.display.Shape;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
            var shape = new Shape();
            stage.addChild(shape);
            var g = shape.graphics;
            
            g.lineStyle(2,0x00ffff,1);
            g.moveTo(100,10);
            g.lineTo(50,100);
            g.lineTo(150,100);
            g.lineTo(100,10);
            
            
        }
    }
}