Hi!
I got problem with this code:
ob.addEventListener(KeyboardEvent.KEY_DOWN, kdown);
function kdown(evt:KeyboardEvent)
{
trace('CLEAR');
if(evt.keyCode == Keyboard.LEFT)
{
ob.x -= 5;
}
if(evt.keyCode == Keyboard.RIGHT)
{
ob.x += 5;
}
}
I have a MovieClip with Instance name: ob
The function never begins when i press on keyboard.
trace(‘CLEAR’); never begins, can you find the problem?
Thanks //WebbHelp