Hi,

you might want to try deleting all your classes. It's a nasty trick however
and who knows what you'll run into next time. Another option is: don't use
singletons or finalize them before you exit your current application
instance.

Assuming all your classes are in a package org.dittgen, you could try delete
_global.org.dittgen before loading the movie again.

greetz
JC
On Jan 9, 2008 4:20 PM, Matthias Dittgen <[EMAIL PROTECTED]> wrote:

> In fact this problem applies not only for AS2/AS3 interop.
> How can I unload MovieClips and thus unload static variables to have a
> fresh startover, when loading the same MovieClip later again?
>
> Matthias
>
> On Jan 9, 2008 3:32 PM, Matthias Dittgen <[EMAIL PROTECTED]> wrote:
> > Hello Flashcodes,
> >
> > I isolated a recent problem I had using AVM1Movies. I have build this
> > everywhere mentioned Proxy for "old" Flash content (Flash8 and
> > before), that enables my AS3 Application to communicate with the
> > loaded AS2 based MovieClip using LocalConnection.
> >
> > Now I load an "old" Movie for the first time into an own container
> > within my proxy AVM1Movie and I lockroot it, too. Later the Movie gets
> > unloaded and sometime later the Movie ist loaded again to a new
> > container. The second time, the Movie does NOT work as expected,
> > because static variables from its former incarnation are still set.
> >
> > Questions:
> > Why are these variables still there and not deleted by garbage
> > collection or the like?
> > How can I have it work? Is there more than lockroot, I can do?
> >
> > Any help or comment on this is welcome.
> >
> > Matthias
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to