flash on 2010-2-20

by mhayashi
♥0 | Line 19 | Modified 2010-02-20 09:38:55 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            drawStar(20, 0x000000);
            drawStar(10, 0x0000ff);
            drawStar(2, 0x00ff00);
        }
        
        private function drawStar(lineB:Number, lineC:Number) :void {
	     	graphics.lineStyle(lineB, lineC);
            graphics.moveTo(50,100);
            graphics.lineTo(250,100);
            graphics.lineTo(100,220);
            graphics.lineTo(150,50);
            graphics.lineTo(200,220);
            graphics.lineTo(50,100);
        }
    }
}