HOME | DD

salvager — Button Tutorial

Published: 2007-09-15 04:17:54 +0000 UTC; Views: 6212; Favourites: 58; Downloads: 182
Redirect to original
Description This is a short tutorial I made in Flash on how to make buttons in Flash. Its short, but it gets the job done well. I hope this helps you guys out.
Related content
Comments: 62

salvager In reply to ??? [2014-04-08 14:29:53 +0000 UTC]

A 2D animation/interactive media program owned by Adobe.

👍: 0 ⏩: 0

TlKl [2012-07-29 20:15:49 +0000 UTC]

But how do you link the button to a frame - so when you click the button it goes to that frame?..

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-07-31 00:04:36 +0000 UTC]

Which version of Flash are you using?

👍: 0 ⏩: 1

TlKl In reply to salvager [2012-07-31 11:41:45 +0000 UTC]

Macromedie flash professional 8

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-08-04 00:23:25 +0000 UTC]

Ok. Another person had the same problem. You can do that by clicking the button on the stage, and then going into your Actionscript editor and putting in this code.


on (release) {
gotoAndPlay(FRAME NUMBER HERE);
}

If you want the code to stop on the frame instead, just replace the the word Play with Stop in the code.

👍: 0 ⏩: 2

TlKl In reply to salvager [2012-08-04 09:59:14 +0000 UTC]

Also: do I have to put the code when im editing the button (drawing the frames and such) or when I go back with it to the scene?
If when im editing it, on which frame?

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-08-11 02:06:31 +0000 UTC]

Back in the scene. Make sure you single click the button.

👍: 0 ⏩: 1

TlKl In reply to salvager [2012-08-16 22:01:01 +0000 UTC]

Okai well, i dingle clicked on the button, and once it worked, but i want that it shows a little animation on those frames, and doesnt go back to the beggining.
So when i try that, it doesnt wait until i click the button, it acts like a simple animation and goes through all the frames. Yes i did put in that code.
How do i fix so that instead showing it as an animation, the button would just go to the animated frames?.
sobadatexplaining

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-08-18 22:44:35 +0000 UTC]

do you have stop(); in the code on the frame you want to be able to click the button on?

👍: 0 ⏩: 1

TlKl In reply to salvager [2012-08-18 22:47:27 +0000 UTC]

oh.. the first time i did have it, but then not 8D
But, like
when im on those animated frames, when theyr finished theyd go back to the button frame. How do i change so only those animated frames loop and they dont go to the button frame?
amf its so hard with me haha 8D

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-08-18 22:56:14 +0000 UTC]

at the last frame, you will need to put in this code:

gotoAndPlay(FRAME NUMBER HERE);

insert the frame number that the animation starts at.

👍: 0 ⏩: 1

TlKl In reply to salvager [2012-08-18 22:56:56 +0000 UTC]

Ahh, okai!
Thanks so much 8D

👍: 0 ⏩: 1

salvager In reply to TlKl [2012-08-18 22:57:56 +0000 UTC]

Anytime! Glad I could help.

👍: 0 ⏩: 0

TlKl In reply to salvager [2012-08-04 06:55:40 +0000 UTC]

Amg, thankies ^^

👍: 0 ⏩: 0

CorgiStump [2011-12-05 04:19:41 +0000 UTC]

hey I'm trying to make a start menu with Adobe Flash CS3 and when I convert my symbols to buttons it doesn't automatically make the four frames. Are you using Macromedia flash?

👍: 0 ⏩: 1

salvager In reply to CorgiStump [2011-12-24 06:02:40 +0000 UTC]

You have to double click on the created button to access the four frames. Hope this solves the issue and sorry about the late response.

👍: 0 ⏩: 1

CorgiStump In reply to salvager [2011-12-24 16:19:02 +0000 UTC]

I figured this out a while ago, but thank you!

👍: 0 ⏩: 0

OfTheMoon [2010-12-28 21:31:46 +0000 UTC]

ok, I made the butto and it looks like it will click, but..... it just flashs between both of the frames, over and over again.... what did I do wrong?

👍: 0 ⏩: 1

salvager In reply to OfTheMoon [2011-02-06 07:52:06 +0000 UTC]

Don't worry, its an easy mistake. All you need to do is add this code to both frames.

stop();

👍: 0 ⏩: 1

OfTheMoon In reply to salvager [2011-02-06 17:27:47 +0000 UTC]

oooh.. >.<

👍: 0 ⏩: 0

Phantom-in-the-makin [2010-06-12 05:32:40 +0000 UTC]

im ew to flash could you explain how i can change the appearance of the button like you did? for some resaon i cant f the life of me do any of it

👍: 0 ⏩: 1

salvager In reply to Phantom-in-the-makin [2010-06-15 22:07:27 +0000 UTC]

By changing the appearance of the button do you mean the way it looks when you are hovering over it, or do you mean just how the button's basic look?

👍: 0 ⏩: 0

ateyourcupcakes [2010-01-16 22:03:16 +0000 UTC]

Does this work with paint?

👍: 0 ⏩: 2

Dottiebird In reply to ateyourcupcakes [2014-03-22 18:42:21 +0000 UTC]

i dont think it works

👍: 0 ⏩: 0

Dottiebird In reply to ateyourcupcakes [2014-03-22 18:42:03 +0000 UTC]

i have paint also

👍: 0 ⏩: 0

Hell-Hawk8 [2009-09-25 04:19:32 +0000 UTC]

Alright, so I'm trying to make the animation not play until the button is pressed, so I put in every frame a stop(); function, and on the button I put a

on (release) {
nextFrame();
}

function, and it says there's no problems, but it just keeps going. Any help?

👍: 0 ⏩: 0

czitta [2009-01-14 22:57:25 +0000 UTC]

I've looked @ 1,000 tutorials on how to make buttons in adobe flash and they all explain the same thing.

I've followed all exactly like you and everyone else said, but I can never make mine ?

My buttons never come up with the extra timeline saying "up, down, over, hit"

Do I have the wrong settings or something ?
I made it a button symbol and I'm using Adobe Flash CS3 professional...

👍: 0 ⏩: 1

salvager In reply to czitta [2009-01-15 00:33:32 +0000 UTC]

did you double click the button? you need to double click the button on the stage to get to that special timeline.

👍: 0 ⏩: 1

czitta In reply to salvager [2009-01-15 07:31:44 +0000 UTC]

Yeah, I did that; but still nothing

I've been trying this for months; maybe I'm just not meant to make a button *has a dramatic movie scene of loss and acception*

👍: 0 ⏩: 1

salvager In reply to czitta [2009-01-15 20:24:59 +0000 UTC]

thats really weird. there might be something wrong with your copy of Flash. you might need to try reinstalling it.

👍: 0 ⏩: 1

czitta In reply to salvager [2009-01-16 03:25:35 +0000 UTC]

Ahh well.
Thanks anyway !
Still an awesome tutorial :]

👍: 0 ⏩: 1

salvager In reply to czitta [2009-01-16 03:39:27 +0000 UTC]

glad to see you liked it.

👍: 0 ⏩: 0

Dreams-Child [2008-07-12 06:32:26 +0000 UTC]

I got the button to click, do you know how to make it so it goes somewhere else D=
I found a tutorial that works ^^
Sorta..
No wait...
I'm still confused

👍: 0 ⏩: 1

salvager In reply to Dreams-Child [2008-07-12 16:01:35 +0000 UTC]

where do you want it to go? to a different web page or a different frame in the flash file?

👍: 0 ⏩: 1

Dreams-Child In reply to salvager [2008-07-12 18:23:24 +0000 UTC]

Different frame

👍: 0 ⏩: 1

salvager In reply to Dreams-Child [2008-07-12 22:52:42 +0000 UTC]

one way to do it is to have the button selected, then paste this in the actionscript screen.

on (release) {
gotoAndPlay(FRAME NUMBER HERE);
}

you could also change Play to Stop if you want it to stop there.

there is also this.

on (release) {
nextFrame();
}

and you could change next to prev to go to the previous frame.

👍: 0 ⏩: 0

theblindbandit321 [2008-04-18 00:23:12 +0000 UTC]

sorry i don't understand wat u mean this my first day useing flash...

i have a button on frame 1 which lasts 1 frame on the timeline.. the button has an action to go to frame 2
the button works fine.. but when the time on frame 1 is finished.. it goes to frame 2 by it self.. how do i stop this??

👍: 0 ⏩: 1

salvager In reply to theblindbandit321 [2008-04-18 19:18:37 +0000 UTC]

don't worry. i know how you feel.

this lasts only one frame on the timeline, so there should be only one frame.

after you make a symbol like the tutorial says, you double click the button. this will take you to a stage where the timeline has changed to having only 4 slots. thats where you edit it.

👍: 0 ⏩: 0

theblindbandit321 [2008-04-17 22:07:45 +0000 UTC]

i tryed this.. but the frames just keep repeating.. how do i stop frame 1 going to frame 2 by itself??

👍: 0 ⏩: 1

salvager In reply to theblindbandit321 [2008-04-17 22:38:10 +0000 UTC]

it should only be on one frame. you must not have double clicked the button when you went to edit the button.

👍: 0 ⏩: 0

Aira-Wave [2008-04-04 21:43:12 +0000 UTC]

Okay, when I draw my button in Flash, the button screen doesn't come up, it just stays as the regular flash screen. But, if I start out with nothing and put in a new one, I can make the button like normal. . .but it doesn't show up on my layer 1 or when I test it. . .

👍: 0 ⏩: 1

salvager In reply to Aira-Wave [2008-04-05 00:43:14 +0000 UTC]

heres what you need to do. after you makie the button, you have to double click the button to get to the button screen.

👍: 0 ⏩: 1

Aira-Wave In reply to salvager [2008-04-05 01:37:22 +0000 UTC]

okay, thank you!

👍: 0 ⏩: 1

salvager In reply to Aira-Wave [2008-04-05 02:25:21 +0000 UTC]

no problem.

👍: 0 ⏩: 0

demoniac-life [2008-04-04 04:43:13 +0000 UTC]

omg thanks!

hey this applyes for flash cs3 right?

or is this the java scriptt?

👍: 0 ⏩: 1

salvager In reply to demoniac-life [2008-04-04 19:36:42 +0000 UTC]

this applies to Flash CS3 too.

👍: 0 ⏩: 1

demoniac-life In reply to salvager [2008-04-06 02:38:10 +0000 UTC]

thanks! I was quite annoyed with the messy instroctions my teacher gave us, u have just aved my life

👍: 0 ⏩: 0

ItachixKisame [2008-01-18 21:10:58 +0000 UTC]

How do youi select it?

👍: 0 ⏩: 1

salvager In reply to ItachixKisame [2008-01-19 00:39:12 +0000 UTC]

the selection tool. just hold down your mouse, like you are drawing a rectangle, and select the objects you want to be selected. you can also double click the outer most fill color too.

👍: 0 ⏩: 1

ItachixKisame In reply to salvager [2008-01-20 02:12:09 +0000 UTC]

Oh, okay!!! ^_^

👍: 0 ⏩: 0


| Next =>