Hi,
I think you have asked this question in about 3-4 different places throughout the forum, Flash CC is AS3.
PHP Code:
stop();
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressAnyKeyAdvanceButLeftGoBackward);
stage.addEventListener(KeyboardEvent.KEY_UP, resetKeyListener);
function pressAnyKeyAdvanceButLeftGoBackward(event:KeyboardEvent):void
{
stage.removeEventListener(KeyboardEvent.KEY_DOWN, pressAnyKeyAdvanceButLeftGoBackward);
switch (event.keyCode)
{
case Keyboard.LEFT :
prevFrame();
break;
default :
nextFrame();
break;
}
}
function resetKeyListener(event:KeyboardEvent):void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, pressAnyKeyAdvanceButLeftGoBackward);
}