RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Alex Harui
d Sent: Friday, September 12, 2008 5:59 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: SWFLoader unloading, whats the trick? Alex, Do you know if Class instances get GC'd? (as in instances of Class, not general objs) I've noticed Player likes to collect SWFs awfully quic

Re: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Josh McDonald
Alex, Do you know if Class instances get GC'd? (as in instances of Class, not general objs) I've noticed Player likes to collect SWFs awfully quickly (even when there's *no* allocation), but I haven't done any experiments to verify the classes get collected as well (or not) yet though, but it migh

RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Alex Harui
The Flex Profiler will tell you if you have other stuff that isn't being cleaned up. I posted on my blog some ways to use it. FP10 fixes many issues with SWFs not unloading. A test using the release build on a non-debugger player is the best way to see if you are getting false-positives. Fro

RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-10 Thread Alex Harui
Each SWF really should stop its own audio and clean up. Trying to clean up on a SWFs behalf is likely a maintenance issue. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djepyon Sent: Wednesday, September 10, 2008 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcode

RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-09 Thread Alex Harui
I haven't used this event to shut down a movie, so I don't have examples, but I think the recommended pattern is that the loaded SWF is supposed to listen for the UNLOAD event on its loaderInfo. If the main app is listening, then you're probably right that it is too late. Of course, if you're