I have this movie with a listener on the main time line included from an actionscript file.
var myListenerKey:Object = new Object();
myListenerKey.onKeyDown = function() {
trace = "hello"
}
This simple code does nothing. Why?
I have this movie with a listener on the main time line included from an actionscript file.
var myListenerKey:Object = new Object();
myListenerKey.onKeyDown = function() {
trace = "hello"
}
This simple code does nothing. Why?
may be because you missed this simple thing…
Key.addListener(myListenerKey);
Thanks sparkdemon! That did the trick.
:: Copyright KIRUPA 2024 //--