Posted By

godstroke on 01/09/10


onAddedToStage mainbegininitflash

Versions (?)


 / Published in: ActionScript 3

you should start doing things after your clip's added to stage

  1. // change Content to your class name, yes its your constructor
  2. public function Content(){addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);}
  3. private function onAddedToStage(e:Event):void {removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);init();}
  4. private function init():void {
  5. // begin here
  6. }

Report this snippet  

You need to login to post a comment.