| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2001
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
Risu Oyabun!
Join Date: Apr 2001
Location: Houston, Texas
Posts: 1,460
|
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();
}
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! |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |