In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

forked from: flash on ループでも再現

Get Adobe Flash player
by mitu 22 Mar 2010
    Embed
/**
 * Copyright mitu ( http://wonderfl.net/user/mitu )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/amxP
 */

// forked from mitu's flash on 2010-3-20
package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
        		//横線のイラスト
            drawYokoLine();
            //縦線のイラスト
            drawTateLine();
        }  
	    
	     private function drawYokoLine():void {
	    	 	var y_1:int = 90;
	    	 	graphics.lineStyle(5,0xCD5C5C);
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(0,y_1);
		    	 	graphics.lineTo(500,y_1);
	    	 		y_1 += 130;
	    	   	}
	    	   	
	    	   	var y_2:int = 10;
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(0,y_2);
		    	 	graphics.lineTo(500,y_2);
	    	 		y_2 += 130;
	    	   	}
	    	   	
	    	   	var y_3:int = 115;
	    	   	graphics.lineStyle(20,0x6495ED);
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(0,y_3);
		    	 	graphics.lineTo(500,y_3);
	    	 		y_3 += 130;
	    	   	}
	    	   	
	    	   	var y_4:int = 50;
	    	   	graphics.lineStyle(5,0x6495ED);
	    	   	for( var i:int = 0; i< 4; i++ ) {	    	 		
		     	graphics.moveTo(0,y_4);
		     	graphics.lineTo(500,y_4);
	    	 		y_4 += 130;
	    	   	}
	    }
	    
	    private function drawTateLine():void {
	    	 	var x_1:int = 20;
	    	 	graphics.lineStyle(5,0xCD5C5C);
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(x_1,0);
		    	 	graphics.lineTo(x_1,500);
	    	 		x_1 += 130;
	    	   	}
	    	   	
	    	   	var x_2:int = 70;
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(x_2,0);
		    	 	graphics.lineTo(x_2,500);
	    	 		x_2 += 130;
	    	   	}
	    	   	
	    	   	var x_3:int = 45;
	    	   	graphics.lineStyle(20,0x6495ED);
	    	 	for( var i:int = 0; i< 4; i++ ) {	    	 		
		    	 	graphics.moveTo(x_3,0);
		    	 	graphics.lineTo(x_3,500);
	    	 		x_3 += 130;
	    	   	}
	    	   	
	    	   	var x_4:int = 110;
	    	   	graphics.lineStyle(5,0x6495ED);
	    	   	for( var i:int = 0; i< 4; i++ ) {	    	 		
		     	graphics.moveTo(x_4,0);
		     	graphics.lineTo(x_4,500);
	    	 		x_4 += 130;
	    	   	}
	    }
    }
}