Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EventDispatcher from external SWF

Status
Not open for further replies.

UKTim

Programmer
Feb 21, 2007
7
GB
Hi everyone,

Im having some problems getting events from an external flash movie. In my main application class, i'm loading an external swf (with MovieClipLoader) into an empty movieclip. I'm storing the reference to the movieclip as a property of my class.

In my external movieclip , ive set up an eventDispatcher to dispatch various events that I want my application class to listen to.

Back in my application class, im adding a listener to the movieclip reference that the swf is loaded into, but I cant seem to get it to hear the event :-S

Does anyone know what i'm doing wrong?

thanx in advance
tim
 
Did a quick test and it's working for me. I added EventListener on LoadInit.

One issue is I cannot listen to the event dispatched immediately on load. This is probably because it takes time to initialize the EventDispatcher/Listener. Events dispathed after EnterFrame are properly listened.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top