Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time related animation - flash mx

Status
Not open for further replies.

goldie66

MIS
May 29, 2003
3
GB
I am working on a 5 min short video animation which should look like rain fall. The main way of how it should be build is that it starts from nothing, after 1/2 min the first drops start, then continously the drops get more until it peaks at minute 2.5 and then decreases again until minute 5.

Is there a way of scripting the time related action and also the increasing and then decreasing amount of rain drops (some way of a counter or i don't know)? each rain drop represents a movieclip so it should work with the duplicate movieclip function - but maybe there is a different way of doing it??? Or is there any other way of doing it except frame to frame animation?

please, please help - it's really urgent and i don't know what to do!

Thanks!!!!!!!
 
this will give you control over what is on stage at 10 sec intervals. make the interval smaller or larger


i=0;

rain = setInterval(fall,10000);
//called every ten seconds

function fall(){
i++;

switch (i){
case 1: //10 secs
//what you want
break;
case 2: //20 secs in
//what you want
break;


case 30:// 5 mins up
clearInterval(rain);
break;
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top