Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,392 Programmers. There are 1,397 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

to pause and resume timer in flash game

 
Reply to this topicStart new topic

to pause and resume timer in flash game

essesar
post 5 May, 2008 - 10:06 PM
Post #1


New D.I.C Head

*
Joined: 5 May, 2008
Posts: 1



i am creating a game in flash in which am having timer.Now if the user clicks help then the timer needs to be paused and after closes that help window the timer should get resumed. i didn't get any codes for this.Can anyone help me with this??
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


girasquid
post 5 May, 2008 - 10:17 PM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

Use setInterval() to increment a counter of seconds passed - when they open help, clear the interval - and when they close it, re-start the interval.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 05:07AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month