Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 5th, 2006, 02:25 PM
lafe lafe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 2 lafe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m
Reputation Power: 0
Question Movie clip button prob

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

Reply With Quote
  #2  
Old December 5th, 2006, 11:38 PM
lafe lafe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 2 lafe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 40 m
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Movie clip button prob


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway