Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- import flash.display.StageAlign;
- import flash.display.StageScaleMode;
- import flash.events.Event;
- import flash.system.Worker;
- import shapesinmotion.base.BaseMainClass;
- import simandroid.base.ShapesInMotionAndroidInitializer;
- [SWF(frameRate="60", backgroundColor="0x000000")]
- public class Main extends BaseMainClass
- {
- public function Main()
- {
- super();
- if(Worker.current.isPrimordial)
- {
- // support autoOrients
- stage.align = StageAlign.TOP_LEFT;
- stage.scaleMode = StageScaleMode.NO_SCALE;
- this.startMainThread();
- }
- else
- {
- this.startPhysicsEngineThread();
- }
- }
- override protected function loaderInfoLoadCompleteEventHandler(event:Event):void
- {
- shapesInMotionInitializer = new ShapesInMotionAndroidInitializer(stage);
- super.loaderInfoLoadCompleteEventHandler(event);
- }
- }
- }
Add Comment
Please, Sign In to add comment