In my flash movie I load another flash movie with button on it. The problem is when I trigger the button the event on the load flash not function. When I check the button it trigger event trough root function on the parent clip. How I can enable the button event on the load movie when I load it on my flash movie?
A:
which version of actionscript are you using ?
If you're using as2.0 use the MovieClipLoader class to load your swf and try to access your button in the onLoadInit event handler.
If you're using as3.0, again...try to access your button in the Event.INIT hander of your Loader instance. Remember that in as3 you ad you listener to the contentLoaderInfo property of your Loader, not directly to the Loader instance.
The init event is triggered once your swf has been load and the classes/instances inside have been initialized, so you should be able to access them then.
Goodluck!
George Profenza
2009-05-03 20:30:38