Re: [Flashcoders] AS3 load and unload swf from different movies

2011-06-14 Thread Ben Sand
You're welcome. Also, if anyone gets word Adobe has solved this, I'd love to know. On Tuesday, 14 June 2011, Matt Perkins nudoru.m...@gmail.com wrote: Thanks for sharing all of that Ben! I think this addresses some issues that I'm having on a project now. Matt Perkins

[Flashcoders] AS3 load and unload swf from different movies

2011-06-13 Thread Bassam M
hi guys I'm try to move from AS2 to AS3 I did some work with AS3 it seems to be easy anyway i have problem with load and unload swf, in AS2 I use to use loadMovie(movie.swf,level) then from the movie.swf I can use back button to load the main movie again or unload the movie if the level more the

Re: [Flashcoders] AS3 load and unload swf from different movies

2011-06-13 Thread Ben Sand
Looked into this a while ago. Bottom line was you can never guarantee an unload, so repeated load/unload always have the potential for memory leaks. In the case of Flex apps it was never possible to completely clear them from memory. Our solution was to load other swfs in another window, though

Re: [Flashcoders] AS3 load and unload swf from different movies

2011-06-13 Thread Bassam M
Hi Ben pls give me the link let me go through it may help, I also had problem with memory when i try to load movie into another because I still didn't get the logic of AS3 for load and unload. On Tue, Jun 14, 2011 at 1:32 AM, Ben Sand b...@bensand.com wrote: Looked into this a while ago.

Re: [Flashcoders] AS3 load and unload swf from different movies

2011-06-13 Thread Ben Sand
While the below shows it is technically unfeasible to completely unload a flex app, that doesn't mean you shouldn't try loading and unloading. It just means if you can't limit the total number of times that it is done, you have to be prepared for the flash player and/or browser to crash / lock up.