View Full Version : Experiencing slowdown when I move the mouse.
zachwlewis
August 11th, 2009, 12:51 PM
I am working on some particle effects, and I am experiencing noticeable slowdown anytime I move the mouse. I am not using any MouseEvents, and I even see this slowdown when the mouse is moving outside of the Flash window. Also, I only notice this slowdown when running the movie from within Flash CS3 (when I run the .swf externally, it runs flawlessly).
How can I make this slowdown disappear?
akiersky
August 11th, 2009, 01:39 PM
the flash preview function runs on a flash player built into cs3, many things will not work as well, or not at all from this previewed mode. Tweens always caused me the most trouble. I would say, if it is only happening from the preview, I wouldn't worry about it, because your audience will not be previewing it from flash anyway.
If it is really bugging you, do a debug preview, which will preview it in the external player, plus give you lots more info about your file while it is playing. (sometimes takes a bit longer to launch)
zachwlewis
August 11th, 2009, 02:07 PM
I figured it was something about the way Flash ran it's debug procedures. I appreciate your input, akiersky. :)
Before, I was creating a particle emitter on the fly:
addChild(new ParticleEmitter());
Then, I changed it to create the variable before adding it to the stage.
public var pe:ParticleEmitter = new ParticleEmitter();
addChild(pe);
After that, the slowdown disappeared. I'm not sure if that was the change that fixed it, but it was a change, and it is now fixed. :P
I've attached my source code if anyone is interested in seeing what a mess I've made of things. :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.