the essence of anticipation

by wh0
♥0 | Line 18 | Modified 2015-05-24 09:59:02 | MIT License
play

ActionScript3 source code

/**
 * Copyright wh0 ( http://wonderfl.net/user/wh0 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/uAHo
 */

package {
    import flash.events.Event;
    import flash.display.Graphics;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        
        public function FlashTest() {
            addEventListener(Event.ENTER_FRAME, frame);
            graphics.lineStyle(1);
            graphics.moveTo(0, 0);
            graphics.lineTo(465, 465 * 8);
            graphics.moveTo(465, 0);
            graphics.lineTo(0, 465 * 8);
        }
        
        private function frame(e:Event):void {
            y--;
        }
        
    }
}