Entry #31
Actionscript 3 Buttons Problem! Halp!
1/20/12 by molkman
Hello swagettes!
Right now, I'm programming Lucky Tower 2 in Actionscript 3 and it's the first time I use it. Almost everything is working nicely, but I have some significant problems with buttons, for example in the menu or even ingame. The problem is, that every time I click a button, I need to click inside the screen again in order to use the keyboard to navigate the hero. CRAZY LIFE!
It happens when I start the game from the menu and it also happens when I, for example, close the inventory. I always have to click somewhere on the screen again, otherwise the keyboard won't react. Overall there seems to be a new way of how Actionscript deals with buttons (you can now block buttons by placing simple movieclip on top of the button) and I'm quite puzzled by that.
Can anybody help me here? That'd be awesome!
- 10 comments
Comments
You must be logged in to comment on this post.
2/20/12
Try deleting your system32
Cool, thanks bro.
1/21/12
Use mah mum. She get yer dun.
1/20/12
Use C++
1/20/12
http://board.flashkit.com/board/showt hread.php?t=761063
That dude seems to have one silly ass problem!
1/20/12
you need a hug! HUG!!
Cyberhugs are the best! Thanks!
1/20/12
use javascript
More like wankerscript-
1/20/12
Yeah that happens. How I deal with it is when I close a menu and return to gameplay , it calls this first
stage.focus = stage;
Awesome, that did it!
1/20/12
use actionscript 4
1/20/12
I've had that problem - I believe you need to look into the .focus property and set it to null or some such...
-Richie
Cool! I'll try that, thanks.
1/20/12
use actionscript2
Go die in a fire, baguetteface.