PDA

View Full Version : what is happening to my button ??


sebek27
06-18-2003, 04:19 AM
i created this button in swift 3d and it shakes when you mouse over it if you move the mouse a bit to the left then it finishes the rotation.. is there any way to fix this ??????

http://www.webstormdigital.com/test.htm

Glowfinger
06-18-2003, 11:01 AM
Alright, your problem lies with you not setting up a hit area on your button. So when i put my mouse over the button it start it's animation, but the button moves out from under my mouse, so then it reveses and then moves back in. Just put a rectangle on the hit frame.:thumbsup: Nice site.

frici
06-18-2003, 04:01 PM
i bet you would like the button to go around regardless of whether the user drags his/her mouse away or not. am i right? if so, then you should separate the button hotspot and the animation itself. put the latter in a movieclip symbol with stop() in its first frame, and create an empty button for the hotspot (you can do that by creating a new button symbol and drawing a rectangle in the button's last frame. if you insert it in your scene, you will see a translucent blue rectangle, but exported there will be nothing visible.) this is for triggering the movieclip symbol, ie. telling it to play: on(mouseover) { _root.youranim.play(); }

you should also add condition to watch whether it is playing now, and a go(1) command in the movieclip symbol's last frame. hope you got the idea:thumbsup:

bye,
frici.

CGTalk Moderation
01-15-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.