Skip to main content
Participant
September 24, 2009
Question

What code do I need to unload my swfs?

  • September 24, 2009
  • 1 reply
  • 561 views

I have this code to load in my external swfs. The problem I have is that I can not seem to find the right code to unload them. There are 5 clips that make up one movie. I have them playing together. I just need them to stop on the last movie, instead of looping. Will someone help me with the unload code? I have tried a lot of different code. Here is my code below. Thanks.

This topic has been closed for replies.

1 reply

Inspiring
September 24, 2009

mmm for some reason this question is being asked alot today... anyway use this code:

removeChild(loader);

loader.unload();

Participant
September 24, 2009

I tried using that and it did not work. It is supposed to go at the end right? Or on another frame?

Inspiring
September 24, 2009

This code should be used at whatever point you need to unload your swf. Make sure to replace "loader" by the instance name that you used for your loader() class...