KnowThyParadox

TemplateMain

Jul 3rd, 2015
4,648
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package game
  2. {
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;
  5.    
  6.     /**
  7.      * ...
  8.      * @author Josh Elliott
  9.      */
  10.     public class Main extends Sprite
  11.     {
  12.        
  13.         public function Main()
  14.         {
  15.             if (stage) init();
  16.             else addEventListener(Event.ADDED_TO_STAGE, init);
  17.         }
  18.        
  19.         private function init(e:Event = null):void
  20.         {
  21.             removeEventListener(Event.ADDED_TO_STAGE, init);
  22.             // entry point
  23.         }
  24.        
  25.     }
  26.    
  27. }
Advertisement