molkmanmolkman

Main News Movies Games Audio Favorites Reviews Stats 330 Fans
Add to Favorites

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!


Comments

You must be logged in to comment on this post.


mandog mandog

2/20/12

Try deleting your system32

2/20/12 molkman responds:

Cool, thanks bro.


Mordoz Mordoz

1/21/12

Use mah mum. She get yer dun.


Use C++


RicePirate RicePirate

1/20/12

http://board.flashkit.com/board/showt hread.php?t=761063

1/21/12 molkman responds:

That dude seems to have one silly ass problem!


TheBoogley TheBoogley

1/20/12

you need a hug! HUG!!

1/21/12 (Updated 1/21/12) molkman responds:

Cyberhugs are the best! Thanks!


use javascript

1/20/12 molkman responds:

More like wankerscript-


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;

1/20/12 molkman responds:

Awesome, that did it!


Lepy Lepy

1/20/12

use actionscript 4


Pikanjo Pikanjo

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

1/20/12 molkman responds:

Cool! I'll try that, thanks.


use actionscript2

1/20/12 molkman responds:

Go die in a fire, baguetteface.