jsound
asked on
Loading External SWF, Listening to Dispatched Events
Hi there,
I need to load external SWFs into a main movie. The problem is that I need to listen to dispatched events in the external SWFs in the main movie. How would I go about that?
Details:
I am putting together a web application that loads content (external SWFs) dynamically into a main movie container. The external SWFs all have their own functionality and expose certain events to the 'parent'. For example, the user presses a button in the loaded SWF, which needs to trigger an action in the main container.
Hope this makes sense. I'm looking for a short code example or outline and not a complete solution.
Thanks,
JB
I need to load external SWFs into a main movie. The problem is that I need to listen to dispatched events in the external SWFs in the main movie. How would I go about that?
Details:
I am putting together a web application that loads content (external SWFs) dynamically into a main movie container. The external SWFs all have their own functionality and expose certain events to the 'parent'. For example, the user presses a button in the loaded SWF, which needs to trigger an action in the main container.
Hope this makes sense. I'm looking for a short code example or outline and not a complete solution.
Thanks,
JB
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the suggestion.
My problem is (even with implementing levesl properly) that the main container does not seem to get the triggered events from the loaded SWFs.
For the moment I'm still hunting for a solution.
JB
My problem is (even with implementing levesl properly) that the main container does not seem to get the triggered events from the loaded SWFs.
For the moment I'm still hunting for a solution.
JB
ASKER
I hadn't thought of that, aneeshchopra. I have done this on another project. On this project I had hoped to use the event listener model to get action out of the main movie.
I'll use your suggestion as a backup. Still looking for a solution using event listeners.
Thanks,
JB
I'll use your suggestion as a backup. Still looking for a solution using event listeners.
Thanks,
JB
Try to load movies to LEVELS. Then it will not overlap your codings. (eg: _root)
BR Dushan