Topic: Performance on multiple galleries

Hello, I made a Flash with multiple galleries (for offline/DVD use).
Basically when you go to a certain frame X, a gallery X is loaded into mcloader using every time the code:

//add svLoader to the "mcLoader" stage movieclip on the main timeline
//listen for SWF loaded
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
//load 1st gallery

I noticed that after using it for a while performance decreases more and more.
I thought it was happening because every time I got to the frame it added a new svLoader to the mcloader, but using a debug/trace script it appears that mcloader always have one child, not multiple ones.

Can you figure out what's happening?
Is it proper to call the
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
every time I go to the frame with the relative gallery? I can't put it just once at the very beginning of the timeline because mcloader is not present there (there is only the main menu) so I get an error. Should I remove the svLoader child every time I leave the gallery?

Thanks for the support

Re: Performance on multiple galleries

Try using the SimpleViewer-Pro API method dispose() to delete the SimpleViewer instance and free up allocated memory.

Steven Speirs
SimpleViewer Support Team