A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [CS3] MC Button Rollover state stays on on ROLL_OUT

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    4

    Question [CS3] MC Button Rollover state stays on on ROLL_OUT

    **It posted my thread with no title and I cant' edit it so I am reposting this for a better response.

    Hi,

    I have made 3 movieclip buttons and they are spaced about 15 pixels apart. I have them working but the problem is if I move my mouse over them fast the 'rollover state' will stay on. I can wiggle the mouse around and get them all to stay on if I wanted to.

    It's not working satisfactory at all. I have had this happen before and it seems to happen when buttons are close together. I must be doing something wrong.

    I'd like to solve this in AS3 if possible.

    Here is my code:

    Code:
    but3.addEventListener(MouseEvent.ROLL_OVER, onButOver);
    but3.addEventListener(MouseEvent.ROLL_OUT, onButOut);
    but2.addEventListener(MouseEvent.ROLL_OVER, onButOver);
    but2.addEventListener(MouseEvent.ROLL_OUT, onButOut);
    but1.addEventListener(MouseEvent.ROLL_OVER, onButOver);
    but1.addEventListener(MouseEvent.ROLL_OUT, onButOut);
     
    function onButOver (event:MouseEvent) {
        event.currentTarget.gotoAndPlay("over");
    }
    function onButOut (event:MouseEvent) {
        event.currentTarget.gotoAndPlay("out");
    }
    Now this works, but the "over" state stays on on mouseout if I move quickly off the button.

    Any help would be GREATLY APPRECIATED! This is for work and I need to do this!

  2. #2
    Junior Member
    Join Date
    Aug 2008
    Posts
    4
    Anyone?

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