Skip to main content
Participant
March 18, 2010
Question

load swf once in all scene (AS2)

  • March 18, 2010
  • 1 reply
  • 729 views

hello ,
i have flash with 3 scene .
i load a external swf in movie clip in scene 1 .
but when i go to next scene external swf load again .
i don't want it load again , it's load in scene 1 .

please HELP .

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 18, 2010

it will remain until the target movieclip is removed.

you can use removeMovieClip() applied to the target movieclip if the target movieclip is at a non-negative depth.  if it's at a negative depth, use swapDepth() to move it to a removeable depth.

mish_kashAuthor
Participant
March 18, 2010

i'm sorry we have a miss undrestanding .
i don't want to remove the movie clip ,  but i don't want it to load again , you know , you have to load external swf ( size 300 KB ) in scene 1 , and wait to load , and when you go to next scene it's load again and you must wait again , i mean what's the way that it load only once for all scene ?

kglad
Community Expert
Community Expert
March 18, 2010

it won't load again unless the loading code is repeated.  ie, if you're loading code is in the target movieclip and the target movieclip is on a keyframe in scene1 and again on a keyframe of scene2, the code in the movieclip with re-execute.