Using getTimer()

This is a discussion on "Using getTimer()" within the Flash & Multimedia Forum section. This forum, and the thread "Using getTimer() are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 20th, 2007, 21:57
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Using getTimer()

Code: Select all
_root.bird.gotoAndStop(3);
startTime = getTimer();
currentTime = getTimer();
if(currentTime-startTime > 5000) {
_root.bird.gotoAndStop(1);
}
I am using that code to try to make _root.bird go to and stop at frame 1 after 5 seconds. As you guessed, it doesn't work. Why?
Reply With Quote

  #2 (permalink)  
Old Sep 21st, 2007, 07:48
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via AIM to tox0tes
Re: Using getTimer()

nevermind, fixed it. And if you are interested in what I'm working on, http://www.flashteam.org/thenewtest.html
Reply With Quote
  #3 (permalink)  
Old Sep 22nd, 2007, 16:14
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: Using getTimer()

Haha, nice! You need to make it where I can shoot as many darts as I want.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #4 (permalink)  
Old Sep 26th, 2007, 06:54
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Using getTimer()

That was fun ha.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
getTimer() and duplicateMovieClip() tox0tes Flash & Multimedia Forum 0 Sep 23rd, 2007 18:56


All times are GMT. The time now is 20:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43