Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Why the 200,000 action limit per frame?!??! |
From: | John Dowdell |
Date: | Tue, 17 Oct 2000 01:15:47 +0100 |
At 3:39 PM 10/16/0, Glen Rhodes wrote:
>Is there a way of disabling the 200,000 action limit per frame??
Try searching the Macromedia Flash Technotes with keyword "limit"... this
pulls up an article on the subject.
For "why?", it's because infinite loops tend to freeze the machine, and
there needs to be some limit on how long to tie the program up without
figuring there's a scripting error.
For "How can I get what I want?" then you might consider not doing it all
in one tight loop, but to instead break it out into a repeating frame
sequence, checking each time for whether the condition has been exceeded.
Instead of this:
for (i=0;i<=9999999999999999;i++) {
yaddaYadda();
}
How about:
onClipEvent (enterFrame) {
i = i + 1000;
if (i < 9999999999999999) {
for (j=0; j<1000; j++) {
yaddaYadda();
}
}
}
That second structure does a thousand operations at a chunk, then lets the
computer do its housekeeping, then returns for another big chunk, and so
on... there's no "big freeze" of spending seconds at a time tied up within
one script.
Does something like this seem like it will achieve the overall goal...?
jd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]