When you add something, you need to remove it = addChild -> removeChild
Coming from AS2 you should understand DisplayObjects...then everything is easy...

Beatrix

Bassam M schrieb:
Hi Guys

I'm doing one project very simple I have some swf file I have to load it by
clicking on the menu then I I have back button it will load the main movie,
the problem when I click to load any movie then to click back again the
movie become very slow, I downt know what to do I have to unload the movie
or clear the memory, I never have this problem with AS2
please Help


this how I'm loading the movie

function gobranches(e:Event):void {
    var loader:Loader = new Loader();
    var branchesurl:URLRequest=new URLRequest("branches.swf");
    loader.load(branchesurl);
    this.addChild(loader);
}
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to