I’m working on an inherited project where most assets are placed on the stage including a button that I’m trying to add a CLICK event listener on.
In my document class, the event listener is being attached like so:
dailyBonusMC.dailyBonus.bonusButton.addEventListener(MouseEvent.CLICK, onbonusButtonClick);
As this is part of a larger project where testing needs to be done in the browser, I’ve set up console.log calls to make sure it’s[LIST=1]
[]reaching the addEventListener line and
[]checking to see if it attaches the listener using hasEventListener(MouseEvent.CLICK)
[/LIST]The line is definitely being reached and the listener is definitely being attached. I even tried to create a transparent Sprite over top of the button to receive the CLICK event but that didn’t work either.
Any thoughts?
P.S. Any word on what’s up with the actionscript.org forums?