cross line_2
/**
* Copyright arumako ( http://wonderfl.net/user/arumako )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/lGaY
*/
package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
public class Test04 extends MovieClip
{
private var count:int = 0;
private var xx:int = 0;
private var yy:int = 0;
private var _xx:int = 0;
private var _yy:int = 0;
//-----------------------------------------------------------------コンストラクタ
public function Test04()
{
this.addEventListener( Event.ENTER_FRAME, line );
}
public function line( event:Event ):void
{
if ( count < 50 )
{
this.graphics.lineStyle( 1, 0x000000, 0.05 );
this.graphics.moveTo( 0, _yy );
this.graphics.lineTo( 465, _yy );
_yy = _yy + 10;
count++;
}
else if ( count < 100)
{
this.graphics.lineStyle( 1, 0x000000, 0.05 );
this.graphics.moveTo( _xx, 0 );
this.graphics.lineTo( _xx, 465 );
_xx = _xx + 10;
count++;
}
else if ( count < 200 )
{
this.graphics.lineStyle( 1, 0x000000, 0.3 );
this.graphics.moveTo( xx, 0 );
this.graphics.lineTo( 232.5, yy );
yy = yy + 9.4;
this.graphics.lineStyle( 1, 0x000000, 0.3 );
this.graphics.moveTo( 0, yy );
this.graphics.lineTo( xx, 232.5 );
xx = xx + 10;
count++;
}
}
}
}