I have the following code from Adobe:
myListener = new Object();
myListener.click = function(evt){
trace(evt.type + " triggered");
}
myButton.addEventListener("click", myListener);
But this does not work though the btn on stage have the same Instance name as in code.
The code provided only works with the actual button component. A button symbol does not dispatch a
clickevent and does not have anaddEventListenermethod. You would have to change your code to: