|
Do-while loops are perfectly fine to use.
Do-while loops that never end are never a good idea, although the Flash player
will time out if ActionScript executes for too long. Your problem is presumably
that your criteria are too narrow, so you are looping through scads of random
numbers before you find one that is acceptable. Put in a counter and see how
many "bad" random numbers you are discarding.
If you tell us what you're really tryto do
and what your criteria are, maybe we can suggest another way to achieve your
goal.
- Gordon
|
Title: Message
- Re: [flexcoders] Question about do while loops Gordon Smith
- Re: [flexcoders] Question about do while loops Harris Reynolds

