flash on 2009-3-6
package {
import flash.display.Sprite;
import flash.events.Event;
public class FlashTest extends Sprite {
private var x_step:Number = stage.stageWidth / 100;
private var y_step:Number = stage.stageHeight / 100;
private var x_p:Number = 0;
private var y_p:Number = 0;
public function FlashTest() {
graphics.lineStyle(1, 0x000000);
addEventListener(Event.ENTER_FRAME, function loop(evt:Event):void {
x_p += x_step;
y_p += y_step;
graphics.moveTo(0, y_p);
graphics.lineTo(x_p, stage.stageHeight);
});
}
}
}