I am trying to add a key listener. I’m pretty sure this was working recently, but now it isn’t, and can’t figure out what is preventing it… any ideas? I am saving in Flash 6.
var myListener:Object = new Object();
myListener.onKeyDown = function()
{
if (Key.isDown(Key.SHIFT))
{
trace (“hello”);
}
};
//
Key.addListener(myListener);
Thanks!
Geoff