Best viewed in Firefox

Awesty Productions

Making buttons in Flash

September 11th, 2006 by awesty

In this tutorial you will learn how to make buttons in flash. It would help if you had taken my ‘Motion Tweening’ tutorial already. If you haven’t you can click here.

I am using flash 8 for this tutorial, but as far as I know all versions should work.
Now open flash and enjoy the tutorial. ;)

Thanks for taking the time to veiw the tutorial. Please take your time to veiw some more tutorials here or leave some feedback on this one.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • Furl
  • MyShare
  • NewsVine
  • Netscape
  • Reddit
  • Simpy
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb

RSS feed | Trackback URI

39 Comments »

Comment by Jay
2006-10-16 00:54:07

Wrong link! Goes to the Motion Tween tutorial not buttons… :o/ help!!

 
Comment by awesty
2006-10-22 12:32:57

Sorry about that, it is fixed now. :)

 
Comment by dan
2006-10-29 04:50:49

how do you put actions on the button???

 
Comment by ALEX
2006-10-29 05:51:09

CAN YOU MAKE A SHAPE TWEENING TUTORIAL

 
Comment by awesty
2006-10-29 10:01:07

@Dan: It says that in the tutorial. Just click on the button and open the actions panel (F9).

@Alex: Yep. I might make one today, if not maybe during the week sometime.

 
Comment by matt
2006-11-02 03:24:05

Great tutorials, i have seen all of them and there very helpfull.

 
Comment by GlowJR
2006-11-10 00:51:21

say I was wondering.. how do you make the button link to a url? i always get an error

 
Comment by awesty
2006-11-10 15:44:03

on(release){
getURL(”http://yoursite.com”);
}

 
Comment by stevie
2006-11-16 11:31:55

how do you get the button to start at scene 24 or 12 or something higher than 2 so that I can make more than one button that lead to different things????

 
Comment by awesty
2006-11-17 09:41:09

on(release){
gotoAndPlay(”Scene Name”, Frame);
}

If you wanted it to go to a scene called RaWR and frame 4 you would use

on(release){
gotoAndPlay(”RaWR”, 4);
}

 
Comment by stevie
2006-11-18 15:33:45

THANKS!!!!

 
Comment by sam
2006-11-29 06:15:56

thx very much just wat i was looking 4!!!

 
Comment by Andrew
2006-12-16 00:44:50

Thanks! your tutorials help so much. Thx. I just finished my game with this tutorial!

 
2006-12-21 20:06:13

[…] If you test your movie (Ctrl+Enter) now you should see a fully functioning game. But we still have to add a 2nd frame. To do this just click on the second frame and hit F6 to make a keyframe. Now just put a message like “You killed it” or something along those lines, and maybe a “Play Again?” button. If you dont know how to make buttons have a look at my Button tutorial. […]

 
Comment by KIM
2006-12-23 11:02:46

hey, so dose this mean i could put sounds in my button?

 
Comment by awesty
2006-12-23 12:19:08

Sure does.

 
Comment by KIM
2006-12-26 16:00:04

HEEY AWESTY, I’VE BEEN WONDERING, WHAT DOSE “AQUA” BUTTON MEAN?

 
Comment by awesty
2006-12-28 18:20:35

Umm… what aqua button?

 
Comment by KIM
2007-01-10 20:26:01

HEY AWESTY, from the fight tute, i got the v-cam and it rocks!!!!!!!!!!

and an aqua button is like a 3-d button

 
Comment by dude
2007-01-25 09:55:05

i was wondering if there was a way i could make a start button for a game i have tried a few things but the wont work

 
Comment by awesty
2007-01-26 12:08:12

on(release){
gotoAndStop(FRAME);
}

 
Comment by zebeker
2007-02-05 11:55:02

i got stuck at the part where you edit the button cuz when i do it every frame changes

 
Comment by awesty
2007-02-05 19:38:31

That is the point. SO it changes when the mouse is over it, pressing on it and not touching it.

 
Comment by chelion
2007-02-15 02:37:23

Great! thanks!

 
Comment by Karan K
2007-02-21 03:24:43

Hi awesty, I’ve made a button and I have a document in flash named “Speed Variable”, I put in:

on(release){
gotoAndPlay(”SpeedVariable”);
}

And nothing happens, also when do I put the stop and in my example where would I put the SpeedVariable in the stop()?

 
Comment by awesty
2007-02-21 15:33:14

I dont understand what you are talking about. The .fla is called SpeedVariable?

 
Comment by Kaz
2007-02-22 04:44:19

Yes it is, oh and also if the .fla I was using was called Bikes and I wanted the button to go to frame 6 would the code be:
on(release){
gotoAndPlay(”Bikes”, 6);
}

 
Comment by awesty
2007-02-24 10:33:44

huh? You just need to put the frame number.

 
Comment by Kaz
2007-03-01 03:09:24

Yeah, I have done that but it just keeps flashing one to another.

 
Comment by awesty
2007-03-05 16:57:08

Is there more than 1 frame in the Bikes scene?

 
Comment by Bryce K
2007-03-18 06:50:57

If any one wants to know how to make advanced buttons just put movieclips in to the buttons so like on the OVER FRAME insert a cool movie clip :P

 
Comment by Bryce K
2007-03-18 06:51:46

Awesty how do you make URL’s come up in the same window not in a diffrent window?
(WEBSITES)

 
Comment by chelion
2007-03-20 05:51:27

yeah, I would also like to know how to determinate where the page opens… I want my page to open in one of my frames when you click on it. (kind of a actionscript version of HTMLs target=”" would be very usefull)

 
Comment by chelion
2007-03-20 06:01:53

HTML frames that is.. not the frames on flash :)

 
Comment by awesty
2007-03-21 18:52:28

on(release){
getURL(”URL”);
}

 
Trackback by Anonymous
2007-08-02 21:02:50

cayenne pepper lemon juice diet…

one week Detox Plan lemon diet lemon juice diet…

 
Trackback by Anonymous
2007-08-02 21:03:06

Christmas and Holiday Gift Baskets and Gifts….

Get Well Gift Baskets…

 
Comment by Isaac Subscribed to comments via email
2007-11-19 13:42:49

I cant add script to the button =\ help

 
Comment by dandeman1300 Subscribed to comments via email
2008-02-15 09:08:09

hey awesty i cant do the coding f i want the button to go to frame 2 what would it look like

 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> in your comment.