Skip to main content
Participating Frequently
October 15, 2008
Question

Need Help Creating Delay Timer in Action Script 3

  • October 15, 2008
  • 1 reply
  • 652 views
I'm a little new to concepts of AS 3 but i'm stumbling through it.

Here's my issue...
I have a simple Regular Flash Movie with 4 slides and an intro label

I need my Intro label to have a Timer or Delay event that holds on the "Intro" Label for a certain amount of time before the Timer expires and calls a function that tells FLASH to go on to slide "Slide 1" label.

The trick is i need this delay to run everytime the Timeline is at the "Intro" label as i have an animation playing while the timer or delay event counts down and finally at end goes to label "Slide 1"
Can anyone share some simple code snipets that would point me in the right direction to accomplish this using AS3 ?
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 16, 2008
you can use setTimeout(f,t) to call a function f() t milliseconds after the setTimeout executes.