Flasher Archive

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


Subject: Re: FLASH: using "loop while"
From: John Dowdell
Date: Wed, 16 Feb 2000 01:42:15 GMT

One thing to watch for with any type of repeat loop is that it's best only
for quick things... iterating through a set number of items, etc.

Where people get into trouble is where they use this to lock the
presentation for seconds at a time... waiting for a mouseclick, waiting for
a keystroke, waiting for a file to load, etc. These aren't good, because it
means that nothing else can happen while you're waiting.

Repeat loops are great for short actions that execute quickly. If you're
waiting for something to happen, though, it's generally better to set a
variable and periodically check whether the state has changed, instead.
(For instance, you might "go to" to branch back and loop over a series
of frames, and one frame checks whether the timer is greater than the value
of a variable.)

jd





John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: OT: DW3 Quickie, Russell E. Unger

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