flash listener blues ;-(
flash listener blues ;-(
- Started
- Last post
- 3 Responses
- v3nt
ok - can't get even one type of these things working. What am i doing wrong?...
listener = new Object();
listener.click = function(evtObj) {
trace("The "+evtObj.target.label+" button was clicked");
};
myButton.addEventListener("click...myButton has been tried as a button or movieclip. thnks...
- v3nt0
still blue and comletely comfuddled
___
*L*
•
- urban100
i tested the code you posted on a button component instance and it worked. if you are using a movieclip as a button, you have to use myButton.onRelease/onPress rather than listener.click, or use the Delegate class if you're having scoping issues.
- era4O40
what version of the flash player are you compiling for?