PDA

View Full Version : SWFLOADER cant get rid of SWF


Pipan
12-31-2008, 05:32 AM
To my problem...

An SWFLoader gets an url to a JPG, and loads it.
Later that url-property is changed to a SWF. This swf-movie has a looping timeline that dispatches an event on frame 10.

Frame10:
dispatchEvent(new Event("myAction", true, true));

The flex-application of course listen for this event and does a trace on every dispatch.
Now, when the url of the SWFLoader is changed to a JPG again, that old event keep dispatching, like some kind of ghost-event.

How do I get rid of that nasty SWF that doesnt seem to wanna leave the loader?

Pipan
12-31-2008, 05:47 AM
Anyone?