PDA

View Full Version : key controlled navigation



sputnikinspace
April 2nd, 2003, 06:39 AM
I want to make an interface that can be controlled by the mouse or by the arrow keys - the only simlat to what I'm trying to achieve is the game Colin McRae.

Lets say I have 3 buttons. If I move my mouse on any of them it gets an mouse over effect.

What I want to do is to combine this with the arrow keys that should be able to jump between the buttons - and the one selected is in the "over" state - to select it I press return.

How on earth is this achieved?

Would be more than grateful on any tips or hints!
Also posted on actionscript.org without any luck.....

Thanks
/sput

mlk
April 2nd, 2003, 06:47 AM
is there any site that does what you are looking for ???
I think rather than using the on(MouseOver) you should use a hitTest, because it doesnt screw up as much ( i think)
otherwise im sorry i dont really understand what you are looking for

sputnikinspace
April 2nd, 2003, 07:20 AM
thanks for answering..I'll try to explain better!

Lets say I have an interface with 2 buttons.
on the stage they are invisible, but when I make a rollover the turn green.

So long everything is fine!

Now I want to be able to navigate in this interface with the arrow keys aswell. If I for example press down arrow button 1 turns green - press again and button 2 turns green( not button 1)
If I want to select it I press return.

So Is there a way to do this...or make buttons go to there over state by actionscripting??

bloodtasteirony
November 15th, 2006, 05:14 PM
Now I want to be able to navigate in this interface with the arrow keys aswell. If I for example press down arrow button 1 turns green - press again and button 2 turns green( not button 1)
If I want to select it I press return.

So Is there a way to do this...or make buttons go to there over state by actionscripting??

I'm actually trying to do the exact same thing. Did you ever find a way to "make buttons go to their over state by actionscripting" ? That would be ideal