Flasher Archive

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


Subject: Re: FLASH: actionscript delay timer
From: Darren Critchley
Date: Mon, 1 May 2000 21:18:50 +0100

Matt Perkins wrote:

> given that delaytime = 500 this sould delay for 500 miliseconds right?
> but flash errors out saying that a loop executed more than 200,000 times ...
> what's wrong?
>
> Set Variable: "now" = GetTimer
> Set Variable: "then" = now + delaytime
> Loop While (now <= then)
> Set Variable: "now" = GetTimer
> End Loop
>

Flash thinks this is an endless loop. Fix it by doing this:

Frame1 = Set Variable: "now" = GetTimer

Frame2 = Set Variable: "then" = now + delaytime
Frame3 = If now <= then goto and play Frame2
else goto and play Frame4
end if
Frame4= continue with movie


Darren.



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: actionscript delay timer, Matt Perkins

Replies
  FLASH: actionscript delay timer, Matt Perkins

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