[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Help with Countdown clock needed

Hi all,


I've adapted an actionscript I found on the net  and I wonder could someone tell me  how to make two small changes to it ?

When the time reaches 0 I want it to play a sound and the display to change to "Time Over". Also, I want the first frame to have a start button that when pressed begins the countdown.

The working file is at http://www.whatyouseeyoucannotbe.com/minute_countdowner.fla

Thanks,
0
jones_bones
Asked:
jones_bones
1 Solution
 
ZefferCommented:
You need to add a couple of frames..
put a button on frame1
the timer on frame 2
and the time over and sound on frame3
then add an if statement to the onEnterFrame function
if(minutes==0 & seconds==0){
      this.gotoAndStop(3);
      delete this.onEnterFrame; //it will run on and on using resources without this
}

http://www.redpearl.co.nz/ee/CDtimer.zip

Z
0
 
jones_bonesAuthor Commented:
Thanks for your help.
Thats great
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now