Link to home
Start Free TrialLog in
Avatar of jsound
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
Avatar of Dushan Silva
Dushan Silva
Flag of Australia image

I can give a partial solution for your problem.
Try to load movies to LEVELS. Then it will not overlap your codings. (eg: _root)

BR Dushan
ASKER CERTIFIED SOLUTION
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jsound
jsound

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
Avatar of jsound

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