Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-27-2001, 10:16 AM   #1
Mikky
Registered User
 
Join Date: Jul 2001
Posts: 2
Question

How do I unload all loaded movies, except Level_0 that's my "MainMovie"?? So I don't end up with a "million" movies opened at the same time.

??? Mikky
Mikky is offline   Reply With Quote
Old 07-27-2001, 03:34 PM   #2
20 Ton Squirrel
Risu Oyabun!
 
20 Ton Squirrel's Avatar
 
Join Date: Apr 2001
Location: Houston, Texas
Posts: 1,460
Default

What I'd do is keep track of the names of ze loaded movies above level 0 in an array. I would then use a for, the loop of real men like sailors or tofu farmers. It'd look sometink like dis:

Code:
function unloader() {
      for(i=1; i<=movarray.length; i++)
          _root[movarray[i-1]].unloadMovie();
  }
Every time you load a movie, push the name of the loaded MC into the movarray. That way all you have to do to unload them all in one fell swoop is to make a call to unloader().

This method is a bit more complex, but it saves you from having to have concrete naming conventions (which you should have anyway).

Another good point is that you won't have to have all your movies loaded sequentially even if you do have good naming conventions. Since the names are stored in that array, you can load myMC3 then myMC29 and it will still kill 'em all.

Hope that helps!
20 Ton Squirrel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Communication between multiple loaded movies jondj24 ActionScript 1.0 (and below) 1 10-28-2004 06:33 AM
start drag and target on loaded movies pourter ActionScript 1.0 (and below) 0 03-25-2004 11:17 PM
problems preloading loaded movies Nazareno ActionScript 1.0 (and below) 1 09-12-2003 06:37 PM
Preloading Multiple Loaded Movies - help needed spiralelf ActionScript 1.0 (and below) 7 08-07-2002 11:41 AM
Can loaded movies be attached to their parent clips FILF ActionScript 1.0 (and below) 2 10-31-2001 12:17 PM


All times are GMT. The time now is 02:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.