Hey all,
I'm make a game (yet it's not really a game related question). The game has lots of things moving around the screen in it. It runs quite smooth while the mouse is not over top the actual swf (so it's somewhere else on the webpage). As soon as the mouse rolls over the swf, the swf's framerate drops a noticable amount (5-10 fps).
I only have 1 event listener on my stage listening for mouse clicks :
Code:
addEventListener(MouseEvent.MOUSE_DOWN, mouseClickedFunction,false,0,true);
I have 15 or so buttons on the screen but none of them have onClick event handlers. I use the Mouse_Down event handler on the stage to detect they click and then find out what they clicked on.
Those 15 buttons do have OnRollOver/RollOut listeners to change the look of the button.
Any idea why my game slows down so much when the mouse enters the swf? I tried my best to have as few listeners as posssible....
Any help you can give would be greatly appreciated!!!
Ryan