Its definitely possible.
of course you have to register to listen to it.
Its Interesting the way loading and unloading of swfs work in flash9.
You probably already know, but the swf is unloaded after it is loaded
automatically.
watch the console.
to clean it up all you need to do is remove the references to what's
been loaded in.
On 08/02/2008, at 10:30 AM, JWOpitz wrote:
I have a as3 swf w/ various movie clip assets in it. Some of them are
dispatching bubbling events that I want to listen for in order to
unload those assets afterwards.
In the flex app I have an AssetImporter class that has bindable prop
like so:
[Bindable]
[Embed(source="assets/swf/someSwf.swf", symbol="someMC")]
public var someSprite:Class;
Now on the end frame of the someMC, its dispatching a new
Event("movieClipEnded", true, true);
I want to be able to listen to this from the Flex app and load a
different embedded asset after the event is dispatched. On the app I
am listening for an event of the same type which is expected to be
bubbling up through the display architecture.
a) is this possible, it doesn't seem likely since Flex seems to be
ignoring it and the mc fails to stop()
b) if so, what is the syntax for doing so?