Hello,
I’m working on a external swf loading process with preloader, in short what I want to achieve is to display a clip on top of my current loaded swf before unload it from the stage (while loading the next one)
I’m using this :
For buttons, let’s say I got this :
btn_array[ix].addEventListener(MouseEvent.MOUSE_DOWN, changeContent);
For the loading process :
private function changeContent(m:MouseEvent):void
{
globalContainer.addChild(preloader);
globalContainer.setChildIndex(preloader,2);
Tweener.addTween(preloader, {alpha:1, time:0.2, transition:"linear"});
id=m.target.id; // we stock the id of the clicked button
loader.unload();
globalContainer.removeChild(loader);
removeListeners(loader.contentLoaderInfo);
loadAnotherSWF(id);
}
Can you tell me how I can temporize the (loader.unload) process so that I have the time to hide my swf before fully unloading it.
Hope I’m clear enough
Thank thank thank you!!!