|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi All
I have a problem with my movie clip buttons staying lit when a user zooms the mouse over the button faster than the movie clip's tint tween. The tween works fine if the mouse is hovered over and off at a normal speed. Some background: Since I'm somewhat a n00b with Actionscript, I grabbed some code that would take you to the desired frame as well as deactivate the button once it's clicked. That all works fine. It's just a zoomy mouse will leave the button at the height of the tint tween, THEN when you hover, it changes back to the off state. So it appears that if you move your mouse out before it reaches the end of the mouseover tween, it stops at that tween instead of completing the mouseout tween. I'm at 25 fps and I have the tween on the movie clip's timeline to be gray in the off state (frame 1 labeled "gohome1"), and blue on the over state in frame 3 (frame label "gohome2"). I then have the second tween from frame 3 (blue) to frame 5 (gray). Like I say, the tween works great unless the mouse is moved too fast over the button. Here's a easier to read breakdown: Frame#-- Frame1-----Frame3-----Frame5 Label---- gohome1---gohome2---(not labeled, has a frame not a keyframe) Tint----- blue--------gray-------blue Here's the code in the main timeline for one of the buttons: function reActivateMenu () { home_mc.gotoAndStop(1); home_mc.enabled = true; } home_mc.onRollOver = function () { this.gotoAndPlay("gohome1"); } home_mc.onRollOut = function () { this.gotoAndPlay("gohome2"); } home_mc.onRelease = function () { reActivateMenu(); this.gotoAndStop("gohome2"); this.enabled = false; gotoAndStop(1); } I just want the buttons to return to the off state no matter how fast the mouse movement. Thanks for any suggestions! lafe Last edited by lafe : December 5th, 2006 at 02:27 PM. Reason: email notification |
|
#2
|
|||
|
|||
|
Well sorry for bugging everyone with my n00bness. I fixed the button backwards thing by reversing the gohome1 and gohome2 in the hover actions.
But the problem still remains about the hovers staying hit if the mouse doesn't sit on the button long enough. The problem doesn't happen if I just have a simple movie clip and not a movie clip inside a movie clip. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Movie clip button prob |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|