14 Replies Latest reply on Jan 2, 2007 8:15 AM by Peter Lorent

    access the "target_mc" outside of the function

    Swirlsky Level 1
      Hello,
      I am loading multiple files with the same set of listeners, and I have an OnLoadInit event listener:

      mclListener.onLoadInit = function(target_mc:MovieClip) { ... }

      With this listener I can beautifully follow up the MovieClips during the animation and I can write them onRelease, onRollOver... events in the function using target_mc.onRollOver { ... } ...etc.

      But how can I access target_mc outside of the function? For example I have a Button on the _root, and I would like to access the current MovieClip in the Button's onRelease event.