actionscript keyUp and keyDown in the browser
actionscript keyUp and keyDown in the browser
- Started
- Last post
- 1 Response
- bananaboy
can anyone help me with some actionscript issues? apparently keyUp and keyDown don't work so hot in a web browser. i'm looking for a workaround. for an example of something that does NOT work:
myListener = new Object();
myListener.onKeyDown = function () {
theKey=(Key.getAscii());
theKey=String.fromCharCode(theKe...
// trace(theKey);}
- unfittoprint0
//this should work
myListener = new Object();
myListener.onKeyDown = function() {
theKey = (Key.getAscii());
theKey = String.fromCharCode(theKey);
trace(theKey);
};
Key.addListener(myListener);//read this also
http://www.macromedia.com/suppor…