Be a Supporter!

As Tutorial Frustration

  • 342 Views
  • 3 Replies
New Topic Respond to this Topic
TheAlphaXany
TheAlphaXany
  • Member since: May. 1, 2007
  • Offline.
Forum Stats
Member
Level 07
Musician
As Tutorial Frustration 2008-06-20 16:37:14 Reply

ive been trying to find a decent tutorial for the action script to a count down timer in flash, but all of the ones ive seen have been rather incomplete or just unreadable due to language barriers. If anybody has found a decent one please let me know, im fed up with trying to find one.
(attempts made: 5 bushmillion)


BBS Signature
zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to As Tutorial Frustration 2008-06-20 16:39:58 Reply

ive been trying to find a decent tutorial for the action script to a count down timer in flash, but all of the ones ive seen have been rather incomplete or just unreadable due to language barriers. If anybody has found a decent one please let me know, im fed up with trying to find one.

Look through As: Main you will either find a tutorial about that specific thing or find others that teach you stuff you will need to know to make one yourself.


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
Gatling
Gatling
  • Member since: Dec. 7, 2007
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to As Tutorial Frustration 2008-06-20 17:01:14 Reply

I'll write one for you right now:

1) Put this code on the first fram of the main timeline:

 
stop();
_root.timermc.timer=X
// X is the amount of seconds you want the counter to be counting of from.

2) Create an empty MovieClip and open it up.
3) On the frame in the MC where exactly 1 second went by you put this code (if you're document has a framerate of 24 fps that would be on frame 24)

timer--
gotoAndPlay(1)

4) Create a "Dynamic text-box" inside the MC
5) go back to the main stage and drag the MC onto it from your library and give it the instance name: "timermc"


"What kind of idiot would quote himself" - Gatling

BBS Signature
TheAlphaXany
TheAlphaXany
  • Member since: May. 1, 2007
  • Offline.
Forum Stats
Member
Level 07
Musician
Response to As Tutorial Frustration 2008-06-23 23:04:24 Reply

At 6/20/08 05:01 PM, Gatling wrote: I'll write one for you right now:

1) Put this code on the first fram of the main timeline:


stop();
_root.timermc.timer=X
// X is the amount of seconds you want the counter to be counting of from.

2) Create an empty MovieClip and open it up.
3) On the frame in the MC where exactly 1 second went by you put this code (if you're document has a framerate of 24 fps that would be on frame 24)

timer--
gotoAndPlay(1)

4) Create a "Dynamic text-box" inside the MC
5) go back to the main stage and drag the MC onto it from your library and give it the instance name: "timermc"

this is the best one yet so thanks much very very much
i could probably learn to incorporate it into a game myself


BBS Signature