views:

256

answers:

1

Hi,

I have a XML image gallery created within a custom class.

This is the way I add the gallery to stage:

var mainContainer:MovieClip = new galleryXML(stage, "xml/image_gallery.xml");

This works perfectly.

But I'm thinking in setup my navigation in the same way. Creat the pages within custom classes and them loading them as I load the xml gallery.

How can I set new values for mainContainer and "unload his loaded content"?

Thanx!

A: 

There is an unload method in the Loader class, is that what you are looking for?

Amarghosh
I really don't know if is that. The galleryXML() is a custom class and it's loaded in the main class as a movieClip. The xml loader is inside the custom class and I don't know how to access it (in main class). I think it should solve the problem. But thanx for your answer Amarghosh!
Fabio Montone