STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228155
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5122

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/42932430?noj=FRM42932430-21DC" width="1" height="1"></div>

Blan's Guide to Buttons.swf

This is the info page for
Flash #57492

(Click the ID number above for more basic data on this flash file.)


Text
blanblan's

blanblan's

blanblan's

blanblan's

blanblan's

blanblan's

blanblan's

blanblan's

guide

to buttons!

OMG

BUTTONS!!!

So, you would like to learn how to make buttons?

Well then, let's start
by simply drawing one!
Maybe just a rectangle
for now.

Convert it to a symbol by right clicking on it and
clicking on "convert to symbol."  Sound easy so
far?  Well that's because it is! :D
Name it 'button' or something.  Then turn it
into a button and click OK.

Then right-click on the button and click on Actions.

And it is!!!

Afterwards, type in 'on,' then 'release' in
parenthesis. With me so far?  If you are, good!  If
you aren't, don't worry!  The tutorial won't go on
until you click the arrow! :D
Anyways, here is what the action should look like.

Now hit Enter at the end
of that line and type in
'gotoAndPlay.'  (It's
case sensitive!!)  It
should look like this.
Then after the
gotoAndPlay, type the
number of the frame you
want the button to lead
to in parentheses.  That
would be these: ( )

For example, if you were going to make it go to
frame 4, it would be something like this...

Be sure to have the frame freeze or stop,
so your viewers actually have a chance to
press the button!  If you don't  know how
to stop a frame,            , and I will
that.

click here

click here

fix

Click here
for copyable
actionscript.

Click here
for copyable
actionscript.

With me so far?  Good!  I'd give you a cookie, but he's
already eating it...
He's eating pretty fast, too.
What a loser.  He needs to learn not
to steal other people's cookies.

Something else you need to learn how to do involves
these words:  Up, Over, Down, and Hit.  They are the
button's appearance guides.  Double click the button
to enter this edit mode.
This will make more sense if you're actually looking at
it...

Over would be how the
button looks like when
the cursor is over it.

Down would be how
the button looks like
when it is clicked.

Hit would be the
clickable area of the
button.

Up would be how the
button looks like when it
is in its normal position.

Try testing your button out and see if it works!  If
it does, I have succeeded in making a helpful
tutorial.  If it doesn't, I have failed. :(
Buttons are very useful especially if you are making
a game or a tutorial or something.
Buttons don't always have to be a rectangle or a
square, they can be a face, or some words, or even
an apple! :D

If you want to review something,

click the back button.

Or just replay the whole thing!

Music by HouseMasta

Making a frame stop is very simple!  Just right-click on the
frame, click on actions, and type this in...

Easy, right?  Yes, it is.
Click on the button to go
back to the tutorial!

Look for another
edible item in this
flash for another
surprise!

You've just found
yourself FOUR whopping
boxes of Apple Jacks!

If you want another
puzzle, count the number
of palm trees in this flash
and go to that frame.
Click on the word that
rhymes with it.

w00t!!!

Haa just kidding.

Click here

Click here

Aah ha ha ha...  that's good stuff.
Hey, at least it wasn't just the Apple
Jacks box spinning.

Even though it is spinning...

Here's the copy-and-paste-able
text for you.

<p align="left"><font face="Comic Sans MS" size="22" color="#000000" letterSpacing="0.000000" kerning="1">on (release) {</font></p><p align="left"><font face="Comic Sans MS" size="22" color="#000000" letterSpacing="0.000000" kerning="1">gotoAndPlay()</font></p><p align="left"><font face="Comic Sans MS" size="22" color="#000000" letterSpacing="0.000000" kerning="1">}</font></p>

Actionscript explained:  The 'on release'
means that once the button is released,
it would go to its next command, which is
to goto and play the desired frame.

Here's some more actionscript that should be
helpful to you.

gotoAndStop()

This is basically the same as
gotoAndPlay, except it would go to
the frame and stop... you figured
that out before I told you, right?  I
really hope so, dude...

nextScene()/prevScene()

This would have the button lead to the
next or previous scene in your movie (if
you have other scenes).

nextFrame()/prevFrame()

This obviously leads to the
next or previous frame. =P
'Nuff said.

getURL

CLICK

CLICK

This action is like a link to a website.
Click on the button below to find out
more, since I can't fit it here.  :P

The getURL action is a way to link to a website on
the internet.  Don't you DARE be intimidated by it,
because it's really very easy.  :)

Start with the traditional 'on (release),' or
'on (press),' whatever.  Then, press enter, and
type in "getURL" without the quotes.

BACK

Now look at the screenshot below.  As you can see,
you now have to type your desired website URL in
quotes in the parentheses.

When finished, add "blank" with quotes after a
comma.  This ensures that the site is opened in a
new browser window, and not in the shockwave
thing itself.  :)

the end

One more thing...
If you have more than one scene in your Flash, and you want your
button to lead to that scene, the script would look something like
this:

The scene would come first, followed by the frame number.
For example, if you wanted your button to lead to scene 2, and the
3rd frame of that scene, your script would look like this:

Good, good?  Yes, yes?  Excellent.  :D

ActionScript [AS1/AS2]

Frame 3
stopAllSounds();
Frame 103
stop();
Frame 104
stop();
Frame 105
stop();
Frame 106
stop();
Frame 107
stop();
Frame 108
stop();
Frame 109
stop();
Frame 110
stop();
Frame 111
stop();
Frame 112
stop();
Frame 113
stop();
Frame 114
stop();
Frame 115
stop();
Frame 116
stop();
Frame 117
stop();
Frame 118
stop();
Frame 119
stop();
Frame 120
stop();
Frame 121
stop();
Frame 122
stop();
Symbol 9 Button
on (release) { getURL ("http://www.newgrounds.com", "blank"); }
Symbol 14 Button
on (release) { _root.play(); }
Symbol 15 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop ("loaded"); }
Symbol 15 MovieClip Frame 2
gotoAndPlay (1);
Symbol 45 Button
on (release) { gotoAndPlay (104); }
Symbol 47 Button
on (release) { gotoAndPlay (114); }
Symbol 58 Button
on (release) { prevFrame(); }
Symbol 59 MovieClip Frame 1
stop();
Instance of Symbol 50 MovieClip in Symbol 59 MovieClip Frame 1
onClipEvent (mouseDown) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { dragging = true; } } onClipEvent (enterFrame) { if (dragging && (_parent.hitRange.hitTest(_root._xmouse, _root._ymouse, false))) { _x = (_parent._xmouse - 10); _root.all.setVolume((_x + 62) / 0.55); } } onClipEvent (mouseUp) { dragging = false; } onClipEvent (load) { dragging = false; _root.all = new Sound(); }
Symbol 65 Button
on (release) { gotoAndPlay (105); }
Symbol 66 Button
on (release) { gotoAndPlay (103); }
Symbol 75 Button
on (release) { gotoAndPlay (106); }
Symbol 77 Button
on (release) { gotoAndPlay (107); }
Symbol 82 Button
on (release) { gotoAndPlay (108); }
Symbol 87 Button
on (release) { gotoAndPlay (109); }
Symbol 93 Button
on (release) { gotoAndPlay (112); }
Symbol 95 Button
on (release) { gotoAndPlay (115); }
Symbol 98 Button
on (release) { gotoAndPlay (117); }
Symbol 102 Button
on (release) { gotoAndPlay (114); }
Symbol 113 Button
on (release) { gotoAndPlay (118); }
Symbol 114 Button
on (release) { gotoAndPlay (108); }
Symbol 116 Button
on (release) { gotoAndPlay (121); }
Symbol 125 Button
on (release) { gotoAndPlay (110); }
Symbol 130 Button
on (release) { gotoAndPlay (3); }
Symbol 138 Button
on (release) { gotoAndPlay (113); }
Symbol 160 Button
on (release) { gotoAndPlay (111); }
Symbol 163 Button
on (release) { gotoAndPlay (103); }
Symbol 169 Button
on (release) { gotoAndPlay (116); }
Symbol 180 Button
on (release) { gotoAndPlay (111); }
Symbol 186 Button
on (release) { gotoAndPlay (109); }
Symbol 197 Button
on (release) { gotoAndPlay (109); }
Symbol 200 Button
on (release) { nextFrame(); }
Symbol 203 Button
on (release) { nextFrame(); }
Symbol 209 Button
on (release) { gotoAndStop (118); }
Symbol 214 Button
on (release) { prevFrame(); }
Symbol 216 Button
on (release) { gotoAndStop (110); }
Symbol 221 Button
on (release) { gotoAndStop (111); }

Library Items

Symbol 1 GraphicUsed by:15
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:15
Symbol 4 GraphicUsed by:15
Symbol 5 GraphicUsed by:8 9
Symbol 6 GraphicUsed by:8 9
Symbol 7 GraphicUsed by:8 9
Symbol 8 MovieClipUses:5 6 7Used by:9
Symbol 9 ButtonUses:8 5 6 7Used by:15
Symbol 10 GraphicUsed by:14
Symbol 11 GraphicUsed by:14
Symbol 12 GraphicUsed by:14
Symbol 13 GraphicUsed by:14
Symbol 14 ButtonUses:10 11 12 13Used by:15
Symbol 15 MovieClipUses:1 3 4 9 14Used by:Timeline
Symbol 16 SoundUsed by:Timeline
Symbol 17 FontUsed by:18 19 20 21 22 23 24 25 26 27 36 37 39 64 71 74 76 81 86 90 91 92 94 117 118 119 120 122 131 161 162 165 166 167 168 179 182 189 190 192 194 196 198 199 202 204 213 215
Symbol 18 TextUses:17Used by:Timeline
Symbol 19 TextUses:17Used by:Timeline
Symbol 20 TextUses:17Used by:Timeline
Symbol 21 TextUses:17Used by:Timeline
Symbol 22 TextUses:17Used by:Timeline
Symbol 23 TextUses:17Used by:Timeline
Symbol 24 TextUses:17Used by:Timeline
Symbol 25 TextUses:17Used by:Timeline
Symbol 26 TextUses:17Used by:Timeline
Symbol 27 TextUses:17Used by:Timeline
Symbol 28 GraphicUsed by:Timeline
Symbol 29 GraphicUsed by:Timeline
Symbol 30 GraphicUsed by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 GraphicUsed by:Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 GraphicUsed by:Timeline
Symbol 35 GraphicUsed by:Timeline
Symbol 36 TextUses:17Used by:Timeline
Symbol 37 TextUses:17Used by:Timeline
Symbol 38 GraphicUsed by:Timeline
Symbol 39 TextUses:17Used by:Timeline
Symbol 40 FontUsed by:41 64 71 76 96 97 99 115 123 124 126 139 140 164 184 185 187 191 193 195 201 202 204 210 213 217 220 224
Symbol 41 TextUses:40Used by:Timeline
Symbol 42 GraphicUsed by:45 65 66 75 77 82 87 113 114 116 125 160 163 180 186 197 203 214 216 221
Symbol 43 GraphicUsed by:45 65 66 75 77 82 87 113 114 116 125 160 163 180 186 197 203 214 216 221
Symbol 44 GraphicUsed by:45 65 66 75 77 82 87 113 114 116 125 160 163 180 186 197 203 214 216 221
Symbol 45 ButtonUses:42 43 44Used by:Timeline
Symbol 46 GraphicUsed by:47
Symbol 47 ButtonUses:46Used by:Timeline
Symbol 48 GraphicUsed by:59
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:59
Symbol 51 GraphicUsed by:52
Symbol 52 MovieClipUses:51Used by:59
Symbol 53 GraphicUsed by:59
Symbol 54 GraphicUsed by:58
Symbol 55 GraphicUsed by:58
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 ButtonUses:54 55 56 57Used by:59
Symbol 59 MovieClipUses:48 50 52 53 58Used by:61
Symbol 60 GraphicUsed by:61
Symbol 61 ButtonUses:59 60Used by:62
Symbol 62 MovieClipUses:61Used by:Timeline
Symbol 63 GraphicUsed by:Timeline
Symbol 64 TextUses:40 17Used by:Timeline
Symbol 65 ButtonUses:42 43 44Used by:Timeline
Symbol 66 ButtonUses:42 43 44Used by:Timeline
Symbol 67 GraphicUsed by:Timeline
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:Timeline
Symbol 70 GraphicUsed by:Timeline
Symbol 71 TextUses:40 17Used by:Timeline
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:Timeline
Symbol 74 TextUses:17Used by:Timeline
Symbol 75 ButtonUses:42 43 44Used by:Timeline
Symbol 76 TextUses:40 17Used by:Timeline
Symbol 77 ButtonUses:42 43 44Used by:Timeline
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:Timeline
Symbol 80 GraphicUsed by:Timeline
Symbol 81 TextUses:17Used by:Timeline
Symbol 82 ButtonUses:42 43 44Used by:Timeline
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:Timeline
Symbol 85 GraphicUsed by:Timeline
Symbol 86 TextUses:17Used by:Timeline
Symbol 87 ButtonUses:42 43 44Used by:Timeline
Symbol 88 BitmapUsed by:89
Symbol 89 GraphicUses:88Used by:Timeline
Symbol 90 TextUses:17Used by:Timeline
Symbol 91 TextUses:17Used by:93
Symbol 92 TextUses:17Used by:93
Symbol 93 ButtonUses:91 92Used by:Timeline
Symbol 94 TextUses:17Used by:95
Symbol 95 ButtonUses:94Used by:Timeline
Symbol 96 TextUses:40Used by:98
Symbol 97 TextUses:40Used by:98
Symbol 98 ButtonUses:96 97Used by:Timeline
Symbol 99 TextUses:40Used by:Timeline
Symbol 100 GraphicUsed by:112
Symbol 101 GraphicUsed by:102
Symbol 102 ButtonUses:101Used by:112
Symbol 103 GraphicUsed by:112
Symbol 104 GraphicUsed by:112
Symbol 105 GraphicUsed by:112
Symbol 106 GraphicUsed by:112
Symbol 107 GraphicUsed by:112
Symbol 108 GraphicUsed by:112
Symbol 109 GraphicUsed by:112
Symbol 110 GraphicUsed by:112
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:100 102 103 104 105 106 107 108 109 110 111Used by:Timeline
Symbol 113 ButtonUses:42 43 44Used by:Timeline
Symbol 114 ButtonUses:42 43 44Used by:Timeline
Symbol 115 TextUses:40Used by:Timeline
Symbol 116 ButtonUses:42 43 44Used by:Timeline
Symbol 117 TextUses:17Used by:Timeline
Symbol 118 TextUses:17Used by:Timeline
Symbol 119 TextUses:17Used by:Timeline
Symbol 120 TextUses:17Used by:Timeline
Symbol 121 GraphicUsed by:Timeline
Symbol 122 TextUses:17Used by:Timeline
Symbol 123 TextUses:40Used by:Timeline
Symbol 124 TextUses:40Used by:Timeline
Symbol 125 ButtonUses:42 43 44Used by:Timeline
Symbol 126 TextUses:40Used by:Timeline
Symbol 127 GraphicUsed by:130
Symbol 128 GraphicUsed by:130
Symbol 129 GraphicUsed by:130
Symbol 130 ButtonUses:127 128 129Used by:Timeline
Symbol 131 TextUses:17Used by:Timeline
Symbol 132 GraphicUsed by:138
Symbol 133 GraphicUsed by:138
Symbol 134 GraphicUsed by:138
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:135Used by:138
Symbol 137 GraphicUsed by:138
Symbol 138 ButtonUses:132 133 134 136 137Used by:Timeline
Symbol 139 TextUses:40Used by:Timeline
Symbol 140 TextUses:40Used by:Timeline
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:Timeline
Symbol 143 BitmapUsed by:144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
Symbol 144 GraphicUses:143Used by:159
Symbol 145 GraphicUses:143Used by:159
Symbol 146 GraphicUses:143Used by:159
Symbol 147 GraphicUses:143Used by:159
Symbol 148 GraphicUses:143Used by:159
Symbol 149 GraphicUses:143Used by:159
Symbol 150 GraphicUses:143Used by:159
Symbol 151 GraphicUses:143Used by:159
Symbol 152 GraphicUses:143Used by:159
Symbol 153 GraphicUses:143Used by:159
Symbol 154 GraphicUses:143Used by:159
Symbol 155 GraphicUses:143Used by:159
Symbol 156 GraphicUses:143Used by:159
Symbol 157 GraphicUses:143Used by:159
Symbol 158 GraphicUses:143Used by:159
Symbol 159 MovieClipUses:144 145 146 147 148 149 150 151 152 153 154 155 156 157 158Used by:178  Timeline
Symbol 160 ButtonUses:42 43 44Used by:Timeline
Symbol 161 TextUses:17Used by:Timeline
Symbol 162 TextUses:17Used by:Timeline
Symbol 163 ButtonUses:42 43 44Used by:Timeline
Symbol 164 TextUses:40Used by:Timeline
Symbol 165 TextUses:17Used by:Timeline
Symbol 166 TextUses:17Used by:Timeline
Symbol 167 TextUses:17Used by:169
Symbol 168 TextUses:17Used by:169
Symbol 169 ButtonUses:167 168Used by:Timeline
Symbol 170 GraphicUsed by:178
Symbol 171 GraphicUsed by:178
Symbol 172 GraphicUsed by:178
Symbol 173 GraphicUsed by:178
Symbol 174 GraphicUsed by:178
Symbol 175 SoundUsed by:178
Symbol 176 GraphicUsed by:178
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:170 159 171 172 173 174 175 176 177Used by:Timeline
Symbol 179 TextUses:17Used by:Timeline
Symbol 180 ButtonUses:42 43 44Used by:Timeline
Symbol 181 FontUsed by:182
Symbol 182 TextUses:17 181Used by:Timeline
Symbol 183 GraphicUsed by:Timeline
Symbol 184 TextUses:40Used by:Timeline
Symbol 185 EditableTextUses:40Used by:Timeline
Symbol 186 ButtonUses:42 43 44Used by:Timeline
Symbol 187 TextUses:40Used by:Timeline
Symbol 188 GraphicUsed by:Timeline
Symbol 189 TextUses:17Used by:Timeline
Symbol 190 TextUses:17Used by:Timeline
Symbol 191 TextUses:40Used by:Timeline
Symbol 192 TextUses:17Used by:Timeline
Symbol 193 TextUses:40Used by:Timeline
Symbol 194 TextUses:17Used by:Timeline
Symbol 195 TextUses:40Used by:Timeline
Symbol 196 TextUses:17Used by:Timeline
Symbol 197 ButtonUses:42 43 44Used by:Timeline
Symbol 198 TextUses:17Used by:200
Symbol 199 TextUses:17Used by:200
Symbol 200 ButtonUses:198 199Used by:Timeline
Symbol 201 TextUses:40Used by:Timeline
Symbol 202 TextUses:40 17Used by:Timeline
Symbol 203 ButtonUses:42 43 44Used by:Timeline
Symbol 204 TextUses:40 17Used by:Timeline
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:Timeline
Symbol 207 FontUsed by:208
Symbol 208 TextUses:207Used by:209
Symbol 209 ButtonUses:208Used by:Timeline
Symbol 210 TextUses:40Used by:Timeline
Symbol 211 BitmapUsed by:212
Symbol 212 GraphicUses:211Used by:Timeline
Symbol 213 TextUses:40 17Used by:Timeline
Symbol 214 ButtonUses:42 43 44Used by:Timeline
Symbol 215 TextUses:17Used by:Timeline
Symbol 216 ButtonUses:42 43 44Used by:Timeline
Symbol 217 TextUses:40Used by:Timeline
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:Timeline
Symbol 220 TextUses:40Used by:Timeline
Symbol 221 ButtonUses:42 43 44Used by:Timeline
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:Timeline
Symbol 224 TextUses:40Used by:Timeline

Instance Names

"bar"Symbol 15 MovieClip Frame 1Symbol 3 MovieClip
"hitRange"Symbol 59 MovieClip Frame 1Symbol 52 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""

Labels

"loaded"Symbol 15 MovieClip Frame 3




http://swfchan.com/12/57492/info.shtml
Created: 18/4 -2019 02:47:30 Last modified: 18/4 -2019 02:47:30 Server time: 21/05 -2024 00:18:49