Hi everybody, I need your help!
Is is possible to embed a flash movie (movie1.swf) to play for a set period of time (say 15 secs) then replace or swap it for another flash movie (movie2.swf)?
Hoping you can help...
Torg.
brothercake
09-09-2003, 12:21 AM
Can't you do that from within the flash movie - add a load command at the right point in the timeline?
Kev@DDN
09-09-2003, 12:45 AM
Originally posted by torg
Is is possible to embed a flash movie (movie1.swf) to play for a set period of time (say 15 secs) then replace or swap it for another flash movie (movie2.swf)?
Paste this code onto a movieclip.
//this script makes the clock countdown from 15 to 0
onClipEvent(load){
//get current time
var startTime= getTimer();
//the amount of seconds to countdown
var countAmount=15;
//keep track of how much time is left
var elapsed=0;
}
onClipEvent(enterFrame){
//see how much time has elapsed
elapsed=getTimer()-startTime;
//do stuff
if(elapsed < countAmount*1000){
counterOutput=countAmount-Math.floor(elapsed/1000);
}else{
loadMovie("blah.swf", _level0);
}
}
I'll give it a try...
Thanx!
whackaxe
09-09-2003, 04:46 PM
why would you want to do that? just load both into twodiffern't scenes :confused:
Kev@DDN
09-09-2003, 11:55 PM
Originally posted by whackaxe
why would you want to do that? just load both into twodiffern't scenes :confused:
Never use scenes :)
They suck so much they blow ;)
1- name/value pairs have a tendency to get lost.
2- Unnecessary filesize when placeholders can be created with 1 line of code.
3- Stupid amounts of coding necessary to talk across them accurately.