flash on 2010-9-12
♥0 |
Line 20 |
Modified 2010-09-12 18:57:31 |
MIT License
archived:2017-03-20 12:09:00
ActionScript3 source code
/**
* Copyright Tamanegi_kenshi ( http://wonderfl.net/user/Tamanegi_kenshi )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5rRA
*/
package {
import flash.events.Event;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var lineY:int = 100;
public function FlashTest() {
init();
}
private function init():void{
addEventListener(Event.ENTER_FRAME, lineMove);
}
private function lineMove(e:Event):void{
graphics.lineStyle(5, 0x000000, 1, true);
graphics.moveTo(100, lineY);
graphics.lineTo(300, lineY);
graphics.endFill();
lineY += 5;
}
}
}