Skip to main content
Admirable_experts157F
Participant
September 13, 2006
Question

How to not load movie only if same movie already loaded?

  • September 13, 2006
  • 1 reply
  • 237 views
How to not load movie only if same movie already loaded?

for example: loadMovie("clip.swf", myclip);
//only if clip.swf is not already loaded. if clip2.swf is loaded then go ahead and load clip.swf

I would really appreciate your help! thanks!
This topic has been closed for replies.

1 reply

Inspiring
September 13, 2006


forumnotifier wrote:
> How to not load movie only if same movie already loaded?
>
> for example: loadMovie("clip.swf", myclip);
> //only if clip.swf is not already loaded. if clip2.swf is loaded then go ahead
> and load clip.swf
>
> I would really appreciate your help! thanks!

Use IF ELSE condition and set flag once you load the first movie, than compare
whether the movie was or wasn't loaded and If was - do nothing - Else - load another.
Check help files for : "else if statement" and "if statement"



--
Best Regards

Urami


--


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Admirable_experts157F
Participant
September 13, 2006
Perfect! works like a charm.

thanks!