Memory unloading - loader.unloadAndStop

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
JohnM
Posts: 2
Joined: Thu Mar 01, 2007 9:17 pm

Have anyone successfully managed to use loader.unloadAndStop to release memory from the pano viewer ?

If yes may you share some insight or even better a working example ?

John Myrstad
erik leeman
Posts: 470
Joined: Sat Sep 09, 2006 10:51 am
Contact:

Have a look at this thread (Mon Feb 22, 2010):

http://gardengnomesoftware.com/forum/vi ... =18&t=4198

I have noticed that the unloading method I described in the above thread isn't compatible with Pano2VR 3 beta 1 Flash panoramas.
Most likely its my use of loader.unloadAndStop(); that clashes with the same or similar code inside the pano itself.
I haven't yet had the time to look into this issue yet.
Hope this helps.

Erik
JohnM
Posts: 2
Joined: Thu Mar 01, 2007 9:17 pm

Thanks Erik for answers here, in the list and mail.

@Thomas R.

Do you have any info to share on the v3 beta and memory managment ?

John Myrstad
erik leeman
Posts: 470
Joined: Sat Sep 09, 2006 10:51 am
Contact:

This is where I got my method from:

http://help.adobe.com/en_US/as3/mobile/ ... -7ffc.html

I just throw away all six cube face bitmaps to free up memory, crude but effective.
Whatever remains of the pano after that is peanuts compared to the amount of MegaBytes of memory those cube faces occupied.
Did you try it?

For Pano2VR 3 beta 1 panos try my cleanup code without loader.unloadAndStop(); , I think Thomas told me in Plymouth that he started using it himself in v3 beta1.

Erik
Post Reply