PDA

View Full Version : Bobblehead BSR and a question...


Kapowee
09-05-2005, 07:09 PM
http://img163.imageshack.us/my.php?image=bobblehead7bs.swf
Move your mouse over his head

Can anyone help me out with this?
I want the head to move when it is clicked and to stop when it is clicked again. I understand that you have to make the head into a movie clip but after that is where I get lost :confused:
Any help would be appreciated

BTw, sorry to BSR for using him as a test subject :D

ConanTL
09-05-2005, 07:14 PM
I love you man (in a distinctly non-gay fashion). That's great as a pic. I wish I could help you with Flash, but i suck at it.

n8henry
09-05-2005, 07:42 PM
Search some tutorial sites for "animated buttons."

Pinkfloyd
09-05-2005, 08:03 PM
What are you asking? Do you want it to be like when the person clicks the head it will shake until he clicks it again? Or he moves his mouse over and it shakes?
Hmm.

I would make a movie clip of his head. Then make like 10 frames, and on the last frame insert a keyframe (f6). Then on the middle frame, insert another keyframe, but on this frame drag the head down. Then make an 11th frame and insert a kframe and, on that frame write (in ascript) "stop();" and label this frame "stop". Also on the first frame call that "start" The just put a button on top, make in invisible (delete all but the hit sqaure) and write:

on(rollOver)
{
gotoAndPlay("Start")
}
on(rollOut)
{
gotoAndPlay("stop")
}

That should work, you would have to play with the number of frames to get the bobbing right. If thats confusing tell me, and I'll make one and you can decompile it. Also just replace rollover with press, and rollout with release if you want them to click it.
Note:that was off the top of my head, dunno if its exact.

Kapowee
09-05-2005, 08:10 PM
What are you asking? Do you want it to be like when the person clicks the head it will shake until he clicks it again?

Exactly, and also can I make an animated gif and turn that into a moviclip in flash, and if so would that be easier?

Anyway thanks man i'll give it a shot, I am bound and determined to learn this :)