Question
dynamic keyboard-event
hello!
i want to make some dynamic buttons which are able to use by pressing a letter and klick them. the problem is, that i try do test it by using trace() and so on but there is no feedback by the flesh when i pressed something. does anybody know what's wrong?
the event looks like that:
private function mausMarkiert(n)
{
n.currentTarget.alpha = 1;
// AENDERN --- hier noch die möglichkeit des tastendrückens und exemplare verschiebens einbauen
container_kalkulator_variante.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
}
private function mausUnmarkiert(n)
{
n.currentTarget.alpha = .8;
}
the alpha-manipulation works. do i have to write something more? container_kalkulator_variante is a sprite.
thanks for reading, understanding and re-writing!
i want to make some dynamic buttons which are able to use by pressing a letter and klick them. the problem is, that i try do test it by using trace() and so on but there is no feedback by the flesh when i pressed something. does anybody know what's wrong?
the event looks like that:
private function mausMarkiert(n)
{
n.currentTarget.alpha = 1;
// AENDERN --- hier noch die möglichkeit des tastendrückens und exemplare verschiebens einbauen
container_kalkulator_variante.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
}
private function mausUnmarkiert(n)
{
n.currentTarget.alpha = .8;
}
the alpha-manipulation works. do i have to write something more? container_kalkulator_variante is a sprite.
thanks for reading, understanding and re-writing!