/ Published in: ActionScript 3
you should start doing things after your clip's added to stage
Expand |
Embed | Plain Text
// change Content to your class name, yes its your constructor public function Content(){addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);} private function onAddedToStage(e:Event):void {removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);init();} private function init():void { // begin here }
You need to login to post a comment.
