LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2003, 07:01 PM
jillymo jillymo is offline
Registered User
 
Join Date: Jul 2003
Location: Illinois USA
Posts: 11
Rep Power: 0
jillymo is on a distinguished road
load movie time, then unload , load new swf

Okay I have a main movie that I has 2 external swf's loaded into it.
Once those play I want them to sit for a few seconds (maybe about 3)
and then I want to unload them and load a new swf. I can't just load into the same empty movie clip, because for 1, there is one swf replacing two and for 2, the position will be different.

Here is what I have so far:
----------------------------------------------------------------------

this.createEmptyMovieClip("clip1", 1);
this.createEmptyMovieClip("clip2", 2);

clip1.loadMovie("welcometo.swf");
clip1._x = 350 ;
clip1._y = 300 ;
clip2.onEnterFrame = function() {

if (clip1._currentframe == clip1._totalframes) {
// stop first animation
clip1.stop();
// load second animation
this.loadMovie("hospitality.swf");
clip2._x = 450 ;
clip2._y = 425 ;
}
};

----------------------------------------------------------------------

now, I tried adding:
root.clip1.unloadMovie("welcometo.swf");
root.clip2.unloadMovie(hospitality.swf");

this.createEmptyMovieClip("clip3", 1);
clip3.loadMovie("hosted.swf");
clip3._x = 400 ;
clip3._y = 350 ;

But all that did was cause the swfs loaded into clip1 and clip 2 not to play & the one in clip 3 starts playing immediatly.
Maybe I should add the code a few frames down and use an onClipEvent (enterFrame) command or something?
Or maybe getTimer and say if welcometo.swf and hospitality.swf have played for a certain amount of time, then unload them and load the new swf?

Not sure...
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
load different movie every time when page refresh maddymunda Flash MX 2004 16 02-16-2009 11:23 AM
preloader for movie with attachSound FlashGuru Flash Wishlist and Bugs 1 07-16-2008 05:23 AM
I need to set xscale and yscale properties of an external swf movie that I called in zobizobi Newbies 2 11-08-2006 09:46 PM
Help - Load Movie !!! Orion MX Flash MX ActionScript 2 06-19-2002 05:28 AM
preloading plankd Newbies 4 08-25-2000 11:15 AM




All times are GMT. The time now is 12:39 AM.