Flasher Archive

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


Subject: Re: FLASH: how to wait??
From: John Dowdell
Date: Mon, 8 May 2000 21:23:47 +0100

> Loop while _currentframe > 10 ... [SNIP]
> But a "loop" or "if" is erroring before it ever gets to
> frame 10 (endless loop).


Watch out for this approach... you only want to use programming loops to
process programming things, rather than user interactivity. If you spin
around in a tight little repeat loop nothing else will happen, because only
one handler executes at a time.

Lots more info is in the Director technotes under keyword "repeat", and
I've got it on my plate to duplicate this info in a Flash-specific way for
the Flash technotes.

I'm not sure when you don't know what frame you're on, so can't usefully
provide a scenario, but generally, for the type of situation you may be
looking at, it's generally more useful to regularly poll whether a property
or variable has yet achieved a value, rather than to spin around inside a
tight little repeat loop waiting in vain for it to change.

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...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


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