Search code examples
flashactionscript-3buttonrollover

AS3 Simple movieclip rollOver question


Simple question.. I have 1 MC with buttonMode=true. There are 2 text fields nested inside 1 button graphic inside the MC. My question is that when I roll over my mouse to my button, the roll over effect is gone if I roll over my text fields....the mouse is still inside the button graphic but the roll over effect is gone....see below..

-------------------
|   textfield a   |
|   textfield b   | <-button
|                 |
-------------------

I hope I explain myself well...when I roll over to textfield a or b..the roll over effect for my button is gone...any ideas?? Thanks...

Update:

My structure is

MC contain 2 textfield and 1 button... I set mybtn.mouseEnabled=false inside my MC timeline... and it killed my mybtn rollover effect completely....


Solution

  • Set

    mouseChildren = false
    

    on the container (ie. The button) Or you can set the mouseEnabled property to false on each of the TextFiends.