Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package game
- {
- import flash.display.Sprite;
- import flash.events.Event;
- /**
- * ...
- * @author Josh Elliott
- */
- public class Main extends Sprite
- {
- public function Main()
- {
- if (stage) init();
- else addEventListener(Event.ADDED_TO_STAGE, init);
- }
- private function init(e:Event = null):void
- {
- removeEventListener(Event.ADDED_TO_STAGE, init);
- // entry point
- }
- }
- }
Advertisement