Flash buttons take focus off of screen
In my flash mov开发者_如何学编程ie, every time when I click on a button, it takes focus off of the stage. And I have to reclick the stage in order to interact with it again. Is there away to fix this issue. I am making a game and it will be very annoying if the player has to keep reclicking the stage in order to take control of the game every time they click on a button.
You have to add the listeners of the control buttons to the stage..
stage.addEventListener(Keyboard.... you know the rest.
if you add it this way, it will be invoked every keyboard event that you added,
UNLESS you the box that is popping is not a part of your flash game - then you have a problem which in the best case be able to fix with Javascript.
And if you're talking about free-hosting popup windows.. then you better find a better hosting place :)
精彩评论