Inside the FLA, on the particular symbol in question, I have
dispatchEvent(new Event("movieClipStopped", true, true)); This is
supposed to bubble up as far as it can go.
On the flex app I have registered to listen for that event, to do
something as simple as putting a break point there.
Nothing happens. So is there another way of registering for this
event that I am not getting?
Also keep in mind, this symbol is embedded via the [Embed] tag rather
than just the swf. Does this play a part? I am really hoping this is
a simple matter of some syntax since you say it is possible.
Thanks,
j
--- In [email protected], Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> 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?
> >
> >
> >
>