Hi,
when I use a UI Button Component and I add a listener like this:
[color=blue]myBtnListener = new Object();[/color]
[color=blue]btnMyButton.addEventListener(“click”, myBtnListener);
myBtnListener.click = function() {
trace(“You clicked the button myBtnListener!”);
doThisFunction();
}[/color]
The function [color=blue]doThisFunction()[/color] gets call too many times(between 30 et 80times).
That’s not what I want. Of course I can set a variable that changes at the end of the doThisFunction() call that stops the function being called more than once but I’m just wondering why is this so???
thanks
DannyBoyInMarseille