Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: Running animations consecutively


Message #1 by "Robert Nyman" <robert.nyman@c...> on Thu, 5 Dec 2002 11:46:09 +0100
Well, just set a variable, or call it afterwards the first one has
ended.

For example:

function animationOne(){
	if(shuld_still_animate){
		// Do the animation thing
		setTimeout("animationOne()", 1000);
	}
	else{
		animationTwo();
	}
}


/Robert


-----Ursprungligt meddelande-----
Fr=E5n: Pat Waddington [mailto:paw@s...]
Skickat: den 4 december 2002 22:35
Till: javascript
=C4mne: [javascript] Running animations consecutively


I have two animated images which I want to run consecutively - i.e. I
want the first animation to finish before the second one starts.

Is there any way I can do this?

Thanks
------------------------------------------------------------------------
----
------------
System 3 2000 Limited
19 Olivers Drive, Witham. Essex. CM8 1QJ
Tel:01376 501745 Website: www.system3-2000.co.uk








  Return to Index