Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Timer
From: John Croteau
Date: Sat, 24 Jul 1999 04:37:14 +0100

Hi Jason,

> Any ideas how to set a timer?
None what-so-ever.

> I need to set a timer to delay a loop by
> 50 milliseconds each time it loops.
For short duration time delays 'While' loops are ideal.
For a 50 millisecond delay use:

On (Press)
Set Variable: "Start" = GetTimer
Loop While (x < 50)
Set Variable: "x" = (GetTimer - Start)
End Loop
Go to and Play (2)
End On

In one of my my simple tests, I could do a while time check loop up to
2563 milliseconds without fail. At 2.564 seconds it failed
(More than 200000 actions were executed in one action list.)
Other tests failed between 2 and 3 seconds as well.

In genearal I would use 'While' timing loops if they are at least 2
seconds or less, and if actions in the loop or elsewhere in the frame
are complicated then the maximum While loop time could be a lot less.

Longer delays need to involve changing frames on the timeline, such as
if loops.

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  FLASH: Timer, Jason

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]