Actionscript: Strange alert window "Script is causing..."
A script in this movie is causing Adobe Flash Player 10 to run slowly. etc...
Getting this alert window.
Is it possible to avoid this somehow?
Maybe somewhere there is a limit for operations per second? Maybe i should create a queue with proper interval inside AS3?
Why is this message appearing? De开发者_JAVA百科pending on what exact factors?
Thanks ;)
Update
Hmm it seems it's memory leak somewhere, i think it's because of it. Garbage collector sucks. :D
The garbage collector in Flash is a very tricky beast. The key is in carefully cleaning up all references to an object, including any event listeners and the object contents. I only really see this error when dealing with particle systems, where the particles aren't being disposed properly.
This error can also appear in the IDE, caused by 3rd party extensions, so test your swf in a browser to make sure it's your fault!
This is not a garbage collector issue. Garbage collection will, at most, pause your SWF for a small time. Either you're performing an action that's taking a looooong time (in the line of pixel operations on an enormous image or something, or heavy operations in a loop), or you've entered into an infinite loop.
Can you give more info on what the SWF is and what it's doing?
精彩评论