Actionscript 3 stage.focus?

Out of context: Reply #2

  • Started
  • Last post
  • 14 Responses
  • maximillion_0

    you should always add a listener in the constructor to listen when the object is added to stage, esp if you want to reference the stage

    addEventListener(Event.ADDED_TO... onAddedToStage);

    the method:
    private function onAddedToStage(e:Event):void {
    // code that references the Stage object
    }

    however i dont think this is your problem. does "frame_mc" exist on the first frame of the target? try tracing out a reference to it

    • frame_mc is on the first frame of the target and I have gotten that to trace. I will try your eventListener. Thanks.CyBrain

View thread