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 to Flash wants to know about buttons!

Status
Not open for further replies.

gambit888

Technical User
Joined
Aug 10, 2005
Messages
3
Location
GB
Hey guys and gals!

I really hope that this isn't too stupid of a question but i can't find a simple tutorial of how to do buttons!

Basically what i want is a button that when clicked on.. will make another layer (e.g. a circle) go about it's animation without the circle just going on and doing its thing anyway withuot pressing the button.

:) hope its not too much trouble to tell me how, or point me somewhere!

Thanks!

G
 
Oh btw, I'm using flash mx 2004! :)

G
 
1. Draw a circle on the stage and convert it to a graphic symbol
2. Convert the circle to a movieclip symbol, give it an instance name "mcCircle"
3. Double-click on the mcCircle to edit in place, and animate the circle along the mcCircle timeline
4. Place [tt]stop()[/tt] in the first and the last frame of the mcCircle timeline
5. Go back to the main timeline by clicking on the "Scene 1" at the top left of the stage
6. Draw a square on the stage and convert it to a button symbol
7. Select the button and go to Actions panel - make sure it says "Actions - Button"
8. Type in the following ActionScript:
[tt]on (press) {
mcCircle.gotoAndPlay(2);
}[/tt]

That's it. Hope it's clear enough.

Kenneth Kawamoto
 
Thanks alot! that was very clear!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top