flash on 2010-4-27

by aktm
♥0 | Line 55 | Modified 2010-04-27 15:10:39 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.text.TextField;

    public class Main extends Sprite {
    	private var _sikaku:Sprite;
    	private var _maru:Sprite;
    	
        public function Main() {
        	   this.graphics.lineStyle(1,0xa9a9a9);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(50,50);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(50,150);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(100,250);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(150,300);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(50,350);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(100,400);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(150,400);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(250,350);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(350,100);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(450,50);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(250,50);
        	   this.graphics.moveTo(250,250);
        	   this.graphics.lineTo(50,50);
        	   
        	   _sikaku = new Sprite();
        	   _sikaku.graphics.beginFill(0x00ffff);
        	   _sikaku.graphics.drawRect(225,225,50,50);
        	   this.addChild(_sikaku);
        	   
        	   _maru = new Sprite();
        	   _maru.graphics.beginFill(0x800000);
        	   _maru.graphics.drawCircle(50,50,20);
        	   _maru.graphics.beginFill(0x006400);
        	   _maru.graphics.drawCircle(50,150,20);
        	   _maru.graphics.beginFill(0x800000);
        	   _maru.graphics.drawCircle(100,250,20);
        	   _maru.graphics.beginFill(0xffff00);
        	   _maru.graphics.drawCircle(50,350,20);
        	   _maru.graphics.beginFill(0x006400);
        	   _maru.graphics.drawCircle(100,400,20);
        	   _maru.graphics.beginFill(0x800000);
        	   _maru.graphics.drawCircle(150,450,20);
        	   this.addChild(_maru);
        	   
        	   
        	   
        	   
        	   
        	    
        	   
        	   
        	   
       
            
        }
    }
}