OK, I’ve found a strange behavior in my movie, so I created a simple flash file to demonstrate the problem. Can anyone explain what is happening and help me find a workaround?
I have a movieclip which I’m treating like a button. I want to capture if someone has pressed it, so I have some actionscript using “on(press).” I also have a combo box on the stage which has some values I’m interested in. Here’s the strange part, though…
Press the movieclip “button” over and over, even without moving the mouse at all, and you get the on(press) code each time. But as soon as you click on the combo box once and pick a value, subsequent clicks on the movieclip button ONLY trigger the on(press) code if you move the mouse a little bit in between clicks. In other words, if you move the cursor back over the movieclip button and click it several times without dragging the mouse at all, it only registers the first click. At least that appears to be the case - something is keeping the on(press) event from firing each time.
Linked below are sample flash projects that should show the strange behavior I’m talking about. I’ve included both Flash 8 format and MX2004. If you have an idea how to resolve this, please let me know. It’s killing my touchscreen app which is going to require a few combo boxes to be selected.