PDA

View Full Version : timing and animation



Alber Kidd
April 5th, 2008, 09:41 AM
Hi,

I have 7 animations I want to trigger. They should be x seconds apart, is there a better way than to setup 7 timers and 7 eventlisteners. The animateButton method takes a start and end x postion. I have 7 of these (see below) but I want to stagger them so they don't all trigger at once.

about_but.animateButton (0, 0);
contact_but.animateButton (20, 127);
equipment_but.animateButton (80, 254);
//etc etc.

ultraky
April 5th, 2008, 05:27 PM
I'd set up the one timer and then add the event listeners to the objects when you want them to start/stop

Felixz
April 5th, 2008, 05:59 PM
flash.utils.setTimeout()