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

flash on 2009-3-6

Get Adobe Flash player
by beatspace 06 Mar 2009
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); 
            });    
        }
    }
}