Skip to main content
edwinmerced
Inspiring
March 18, 2010
Question

Load and Unload Movies in AS3

  • March 18, 2010
  • 1 reply
  • 748 views

Please Can someone point me to some god examplkes on loading and unloading swfs in AS3. I manage to load but unloading is a headache.

Thanks

Att.,

Edwin

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 18, 2010

if you're publishing for flashplayer 10, you can use unloadAndStop() applied to your loader.  otherwise, if you have problems with loaded swf streams continuing after unloading and/or removing the loader from the display list, you'll need to explicitly stop all streams.

edwinmerced
Inspiring
March 18, 2010

Hello Kglad:

Thank you for your response. Would you have a website or utorial to point me to? Or some code to study?

kglad
Community Expert
Community Expert
March 18, 2010

there's nothing to study if you're using fp 10:


var yourloader:Loader=new Loader();

.

.

yourloader.load(new URLRequest("whatever.swf"));



function unloadF(){
yourloader.unloadAndStop();

}