Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie :Tweening a simple button 1

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Hello,what do I do wrong here:

I want a button,and when I go over it it has to rotate
180°. Should be easy,but I can't get it to work.

1)I create a layer,
2)I draw an circle,put "hello" in there.
3)press F8 convert to symbol,I pick button
because it is a button (right?)
4)double click on the button to do some changes.
5)insert keyframe at "over"
6)I click right and chose "create motion tween"
7)now I can doubleclick again and I see a timeline.
8)I go to frame 5,insert keyframe,do my changes and
create tween. I have to take motion tween because
the logical shape tween gives me a dashed line
(why? I use a shape don't I ?)
9)now I have my button with a tween and it doesn't work.

why ?? I've been searching for 3 hours on it now and I'm tired of it. Please help.
thnx.










Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
1.make a movie clip
2.inside movie clip draw your button
3.press f8 to make it symbol
4.first keyframe make it "motion" tween
5.put your next keyframe wherever and rotate your button how you want it, on this keyframe put your script
6.on both keyframes don't forget to put a script so that it goes back to frame 1 on mouseout

EZ
 
no, but it might be because I
did like you said,but on your
step 5 , I created a symbol
and took as type button.
Do I have to convert it a button
somwhere ? or do I have to do
everything myself with actions ? Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
This is what I've done:

I have created a movie clip (a rectangle).
In the movie clip I've created a layer with my button on.
I have made the button a symbol with type button.
After dubble click I can see the Up Over Down and Hit tab
I want to create a motion tween,so I click right on "Over"
and chose Create motion tween.
Now I can click again twice on my button and I see
a timeline. I have managed (not without problems) to get me
a tween there. (it rotates when Imove the red rectangle on
the top across the timeline)

Is this not enough ? because it does not work : (. Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
It works.

But not like you said booya,I did it another way.
I drew a button,made it a symbol (button)
and clicked double on it.
Then clicked "Over", pressed f8 again,converting it
into a symbol (movieclip)
Now I can doubleclick again and make the tween.
and it works.
Is this the best way ?

Thnx a lot for the reply. Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
dude!! forget about creating the tween IN the button, but create it in the movieclip

as you say your first layer is a rectangle
NOW your second layer is your button.
create your tween here from the first frame of THIS layer.
draw your button make it button symbol, before creating the second keyframe press the motion option, NOW create your second keyframe>>>>
on the first keyframe (in the frame) there should be a stop
now if you just click once the button (blue highlight)press on mouse event in action panel to then select on mouseover,
directly after that press the option play in actionpanel>>

now go to second keyframe (select the frame) and add a stop.
now press just once on the button and add the action the button should do. onclick blabla, don't forget to add onmouseout go to frame 1 for the button to get back to initial stage.


send the .fla to lezic@hotmail.com if you don't understand me

 
I wrote originally a whole book here,but deleted it and send you the fla.
Hope I understand it...
Thnx a lot for the time and trouble booya! Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
My button is up and spinning! :)
And I understand it now.
The fla you send me works fine.
One star coming up!
Thnx a lot booya! Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top