A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button on top of a button

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    343

    Button on top of a button

    Hi there
    I have 2 buttons:

    Button A and Button B.

    Button A has an on mouse over state...

    Button B also has some on mouse over state AND sits on top of button A. The problem happens when I go on top of Button B... The "on mouse over" state of Button A stops... I think since I'm on top of Button B (which is on top of Button A) flash takes off the "on mouse over" state of button A

    I'd like to set it up so that even though I'm on top of Button B, Button A still remains in "on mouse over mode"...

    Can anyone help?
    Losse

  2. #2
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    you could try making movieclips that act as buttons but instead of
    on(press){
    //bla bla bla
    }
    it could be...
    if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
    //bla bla bla
    }
    or try:
    this.onPress = function(){
    //bla bla bla
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center