Hello,
I have a problem in a flash project which is being developed as a stand alone application that will be played from a cd. At any point in the application where the user hits the enter key, the program will jump to the text frame.
Is there a way to suppress this?
I've tried this line of code but it doesn't respond:
var myListener:Object = new Object();
myListener.onKeyDown = function()
{
if( Key.getCode() == Key.ENTER )
{
_root.gotoAndStop( _root._currentframe ); //keeps the program on the current frame
}
}
Key.addListener( myListener );
//------------------------------------------------------------------------
I have a problem in a flash project which is being developed as a stand alone application that will be played from a cd. At any point in the application where the user hits the enter key, the program will jump to the text frame.
Is there a way to suppress this?
I've tried this line of code but it doesn't respond:
var myListener:Object = new Object();
myListener.onKeyDown = function()
{
if( Key.getCode() == Key.ENTER )
{
_root.gotoAndStop( _root._currentframe ); //keeps the program on the current frame
}
}
Key.addListener( myListener );
//------------------------------------------------------------------------