OK I've made a working example. All the code is in main.fla.
It loads up 1.swf onto Level1, then waits for it to finish, then unloads it and loads 2.swf.
Note that the 'count' veriable is just to cover a bug in loading. (When you first check the _currentframe and _totalframe of the loaded clip they both come out as 1 no matter how many frames the clip actually has, so I put in a variable which waits about 10 frames before it checks... just be sure your loaded clip has 10 frames or more and this should work fine...)
Also note that because the clips are loaded onto levels you will prolly have to adapdt the code a bit to load them into movie clips (if that's what you wish)
Either way:
See it here.
(Note: It doesn't seem to work online, prolly needs a preloader for the loaded clip... it works on my HDD perfectly...)
Download the source.
Merry Xmas!
Jesse
[Edited by Jesse on 12-22-2000 at 07:21 PM]
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org
Please
don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.