STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
A Very Merry Christmas! |
This is the info page for Flash #37786 |
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 |
ActionScript [AS1/AS2]
Frame 3stopAllSounds();Frame 103stop();Frame 104stop();Frame 105stop();Frame 106stop();Frame 107stop();Frame 108stop();Frame 109stop();Frame 110stop();Frame 111stop();Frame 112stop();Frame 113stop();Frame 114stop();Frame 115stop();Frame 116stop();Frame 117stop();Frame 118stop();Frame 119stop();Frame 120stop();Symbol 9 Buttonon (release) { getURL ("http://www.newgrounds.com", "blank"); }Symbol 14 Buttonon (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 2gotoAndPlay (1);Symbol 45 Buttonon (release) { gotoAndPlay (104); }Symbol 47 Buttonon (release) { gotoAndPlay (114); }Symbol 58 Buttonon (release) { prevFrame(); }Symbol 59 MovieClip Frame 1stop();Instance of Symbol 50 MovieClip in Symbol 59 MovieClip Frame 1onClipEvent (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 Buttonon (release) { gotoAndPlay (105); }Symbol 66 Buttonon (release) { gotoAndPlay (103); }Symbol 75 Buttonon (release) { gotoAndPlay (106); }Symbol 77 Buttonon (release) { gotoAndPlay (107); }Symbol 82 Buttonon (release) { gotoAndPlay (108); }Symbol 87 Buttonon (release) { gotoAndPlay (109); }Symbol 93 Buttonon (release) { gotoAndPlay (112); }Symbol 95 Buttonon (release) { gotoAndPlay (115); }Symbol 98 Buttonon (release) { gotoAndPlay (117); }Symbol 102 Buttonon (release) { gotoAndPlay (114); }Symbol 113 Buttonon (release) { gotoAndPlay (118); }Symbol 114 Buttonon (release) { gotoAndPlay (108); }Symbol 116 Buttonon (release) { gotoAndPlay (111); }Symbol 125 Buttonon (release) { gotoAndPlay (110); }Symbol 130 Buttonon (release) { gotoAndPlay (3); }Symbol 134 Buttonon (release) { gotoAndPlay (113); }Symbol 158 Buttonon (release) { gotoAndPlay (103); }Symbol 164 Buttonon (release) { gotoAndPlay (116); }Symbol 175 Buttonon (release) { gotoAndPlay (111); }Symbol 181 Buttonon (release) { gotoAndPlay (109); }Symbol 192 Buttonon (release) { gotoAndPlay (109); }Symbol 195 Buttonon (release) { nextFrame(); }Symbol 198 Buttonon (release) { nextFrame(); }Symbol 204 Buttonon (release) { gotoAndStop (118); }Symbol 209 Buttonon (release) { prevFrame(); }
Library Items
Symbol 1 Graphic | Used by:15 | |
Symbol 2 Graphic | Used by:3 | |
Symbol 3 MovieClip | Uses:2 | Used by:15 |
Symbol 4 Graphic | Used by:15 | |
Symbol 5 Graphic | Used by:8 9 | |
Symbol 6 Graphic | Used by:8 9 | |
Symbol 7 Graphic | Used by:8 9 | |
Symbol 8 MovieClip | Uses:5 6 7 | Used by:9 |
Symbol 9 Button | Uses:8 5 6 7 | Used by:15 |
Symbol 10 Graphic | Used by:14 | |
Symbol 11 Graphic | Used by:14 | |
Symbol 12 Graphic | Used by:14 | |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 Button | Uses:10 11 12 13 | Used by:15 |
Symbol 15 MovieClip | Uses:1 3 4 9 14 | Used by:Timeline |
Symbol 16 Sound | Used by:Timeline | |
Symbol 17 Font | Used 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 156 157 160 161 162 163 174 177 184 185 187 189 191 193 194 197 199 208 210 | |
Symbol 18 Text | Uses:17 | Used by:Timeline |
Symbol 19 Text | Uses:17 | Used by:Timeline |
Symbol 20 Text | Uses:17 | Used by:Timeline |
Symbol 21 Text | Uses:17 | Used by:Timeline |
Symbol 22 Text | Uses:17 | Used by:Timeline |
Symbol 23 Text | Uses:17 | Used by:Timeline |
Symbol 24 Text | Uses:17 | Used by:Timeline |
Symbol 25 Text | Uses:17 | Used by:Timeline |
Symbol 26 Text | Uses:17 | Used by:Timeline |
Symbol 27 Text | Uses:17 | Used by:Timeline |
Symbol 28 Graphic | Used by:Timeline | |
Symbol 29 Graphic | Used by:Timeline | |
Symbol 30 Graphic | Used by:Timeline | |
Symbol 31 Graphic | Used by:Timeline | |
Symbol 32 Graphic | Used by:Timeline | |
Symbol 33 Graphic | Used by:Timeline | |
Symbol 34 Graphic | Used by:Timeline | |
Symbol 35 Graphic | Used by:Timeline | |
Symbol 36 Text | Uses:17 | Used by:Timeline |
Symbol 37 Text | Uses:17 | Used by:Timeline |
Symbol 38 Graphic | Used by:Timeline | |
Symbol 39 Text | Uses:17 | Used by:Timeline |
Symbol 40 Font | Used by:41 64 71 76 96 97 99 115 123 124 126 135 136 159 179 180 182 186 188 190 196 197 199 205 208 | |
Symbol 41 Text | Uses:40 | Used by:Timeline |
Symbol 42 Graphic | Used by:45 65 66 75 77 82 87 113 114 116 125 158 175 181 192 198 209 | |
Symbol 43 Graphic | Used by:45 65 66 75 77 82 87 113 114 116 125 158 175 181 192 198 209 | |
Symbol 44 Graphic | Used by:45 65 66 75 77 82 87 113 114 116 125 158 175 181 192 198 209 | |
Symbol 45 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 46 Graphic | Used by:47 | |
Symbol 47 Button | Uses:46 | Used by:Timeline |
Symbol 48 Graphic | Used by:59 | |
Symbol 49 Graphic | Used by:50 | |
Symbol 50 MovieClip | Uses:49 | Used by:59 |
Symbol 51 Graphic | Used by:52 | |
Symbol 52 MovieClip | Uses:51 | Used by:59 |
Symbol 53 Graphic | Used by:59 | |
Symbol 54 Graphic | Used by:58 | |
Symbol 55 Graphic | Used by:58 | |
Symbol 56 Graphic | Used by:58 | |
Symbol 57 Graphic | Used by:58 | |
Symbol 58 Button | Uses:54 55 56 57 | Used by:59 |
Symbol 59 MovieClip | Uses:48 50 52 53 58 | Used by:61 |
Symbol 60 Graphic | Used by:61 | |
Symbol 61 Button | Uses:59 60 | Used by:62 |
Symbol 62 MovieClip | Uses:61 | Used by:Timeline |
Symbol 63 Graphic | Used by:Timeline | |
Symbol 64 Text | Uses:40 17 | Used by:Timeline |
Symbol 65 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 66 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 67 Graphic | Used by:Timeline | |
Symbol 68 Bitmap | Used by:69 | |
Symbol 69 Graphic | Uses:68 | Used by:Timeline |
Symbol 70 Graphic | Used by:Timeline | |
Symbol 71 Text | Uses:40 17 | Used by:Timeline |
Symbol 72 Bitmap | Used by:73 | |
Symbol 73 Graphic | Uses:72 | Used by:Timeline |
Symbol 74 Text | Uses:17 | Used by:Timeline |
Symbol 75 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 76 Text | Uses:40 17 | Used by:Timeline |
Symbol 77 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 78 Bitmap | Used by:79 | |
Symbol 79 Graphic | Uses:78 | Used by:Timeline |
Symbol 80 Graphic | Used by:Timeline | |
Symbol 81 Text | Uses:17 | Used by:Timeline |
Symbol 82 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 83 Bitmap | Used by:84 | |
Symbol 84 Graphic | Uses:83 | Used by:Timeline |
Symbol 85 Graphic | Used by:Timeline | |
Symbol 86 Text | Uses:17 | Used by:Timeline |
Symbol 87 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 88 Bitmap | Used by:89 | |
Symbol 89 Graphic | Uses:88 | Used by:Timeline |
Symbol 90 Text | Uses:17 | Used by:Timeline |
Symbol 91 Text | Uses:17 | Used by:93 |
Symbol 92 Text | Uses:17 | Used by:93 |
Symbol 93 Button | Uses:91 92 | Used by:Timeline |
Symbol 94 Text | Uses:17 | Used by:95 |
Symbol 95 Button | Uses:94 | Used by:Timeline |
Symbol 96 Text | Uses:40 | Used by:98 |
Symbol 97 Text | Uses:40 | Used by:98 |
Symbol 98 Button | Uses:96 97 | Used by:Timeline |
Symbol 99 Text | Uses:40 | Used by:Timeline |
Symbol 100 Graphic | Used by:112 | |
Symbol 101 Graphic | Used by:102 | |
Symbol 102 Button | Uses:101 | Used by:112 |
Symbol 103 Graphic | Used by:112 | |
Symbol 104 Graphic | Used by:112 | |
Symbol 105 Graphic | Used by:112 | |
Symbol 106 Graphic | Used by:112 | |
Symbol 107 Graphic | Used by:112 | |
Symbol 108 Graphic | Used by:112 | |
Symbol 109 Graphic | Used by:112 | |
Symbol 110 Graphic | Used by:112 | |
Symbol 111 Graphic | Used by:112 | |
Symbol 112 MovieClip | Uses:100 102 103 104 105 106 107 108 109 110 111 | Used by:Timeline |
Symbol 113 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 114 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 115 Text | Uses:40 | Used by:Timeline |
Symbol 116 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 117 Text | Uses:17 | Used by:Timeline |
Symbol 118 Text | Uses:17 | Used by:Timeline |
Symbol 119 Text | Uses:17 | Used by:Timeline |
Symbol 120 Text | Uses:17 | Used by:Timeline |
Symbol 121 Graphic | Used by:Timeline | |
Symbol 122 Text | Uses:17 | Used by:Timeline |
Symbol 123 Text | Uses:40 | Used by:Timeline |
Symbol 124 Text | Uses:40 | Used by:Timeline |
Symbol 125 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 126 Text | Uses:40 | Used by:Timeline |
Symbol 127 Graphic | Used by:130 | |
Symbol 128 Graphic | Used by:130 | |
Symbol 129 Graphic | Used by:130 | |
Symbol 130 Button | Uses:127 128 129 | Used by:Timeline |
Symbol 131 Text | Uses:17 | Used by:Timeline |
Symbol 132 Graphic | Used by:134 | |
Symbol 133 Graphic | Used by:134 | |
Symbol 134 Button | Uses:132 133 | Used by:Timeline |
Symbol 135 Text | Uses:40 | Used by:Timeline |
Symbol 136 Text | Uses:40 | Used by:Timeline |
Symbol 137 Bitmap | Used by:138 | |
Symbol 138 Graphic | Uses:137 | Used by:Timeline |
Symbol 139 Bitmap | Used by:140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
Symbol 140 Graphic | Uses:139 | Used by:155 |
Symbol 141 Graphic | Uses:139 | Used by:155 |
Symbol 142 Graphic | Uses:139 | Used by:155 |
Symbol 143 Graphic | Uses:139 | Used by:155 |
Symbol 144 Graphic | Uses:139 | Used by:155 |
Symbol 145 Graphic | Uses:139 | Used by:155 |
Symbol 146 Graphic | Uses:139 | Used by:155 |
Symbol 147 Graphic | Uses:139 | Used by:155 |
Symbol 148 Graphic | Uses:139 | Used by:155 |
Symbol 149 Graphic | Uses:139 | Used by:155 |
Symbol 150 Graphic | Uses:139 | Used by:155 |
Symbol 151 Graphic | Uses:139 | Used by:155 |
Symbol 152 Graphic | Uses:139 | Used by:155 |
Symbol 153 Graphic | Uses:139 | Used by:155 |
Symbol 154 Graphic | Uses:139 | Used by:155 |
Symbol 155 MovieClip | Uses:140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | Used by:173 Timeline |
Symbol 156 Text | Uses:17 | Used by:Timeline |
Symbol 157 Text | Uses:17 | Used by:Timeline |
Symbol 158 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 159 Text | Uses:40 | Used by:Timeline |
Symbol 160 Text | Uses:17 | Used by:Timeline |
Symbol 161 Text | Uses:17 | Used by:Timeline |
Symbol 162 Text | Uses:17 | Used by:164 |
Symbol 163 Text | Uses:17 | Used by:164 |
Symbol 164 Button | Uses:162 163 | Used by:Timeline |
Symbol 165 Graphic | Used by:173 | |
Symbol 166 Graphic | Used by:173 | |
Symbol 167 Graphic | Used by:173 | |
Symbol 168 Graphic | Used by:173 | |
Symbol 169 Graphic | Used by:173 | |
Symbol 170 Sound | Used by:173 | |
Symbol 171 Graphic | Used by:173 | |
Symbol 172 Graphic | Used by:173 | |
Symbol 173 MovieClip | Uses:165 155 166 167 168 169 170 171 172 | Used by:Timeline |
Symbol 174 Text | Uses:17 | Used by:Timeline |
Symbol 175 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 176 Font | Used by:177 | |
Symbol 177 Text | Uses:17 176 | Used by:Timeline |
Symbol 178 Graphic | Used by:Timeline | |
Symbol 179 Text | Uses:40 | Used by:Timeline |
Symbol 180 EditableText | Uses:40 | Used by:Timeline |
Symbol 181 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 182 Text | Uses:40 | Used by:Timeline |
Symbol 183 Graphic | Used by:Timeline | |
Symbol 184 Text | Uses:17 | Used by:Timeline |
Symbol 185 Text | Uses:17 | Used by:Timeline |
Symbol 186 Text | Uses:40 | Used by:Timeline |
Symbol 187 Text | Uses:17 | Used by:Timeline |
Symbol 188 Text | Uses:40 | Used by:Timeline |
Symbol 189 Text | Uses:17 | Used by:Timeline |
Symbol 190 Text | Uses:40 | Used by:Timeline |
Symbol 191 Text | Uses:17 | Used by:Timeline |
Symbol 192 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 193 Text | Uses:17 | Used by:195 |
Symbol 194 Text | Uses:17 | Used by:195 |
Symbol 195 Button | Uses:193 194 | Used by:Timeline |
Symbol 196 Text | Uses:40 | Used by:Timeline |
Symbol 197 Text | Uses:40 17 | Used by:Timeline |
Symbol 198 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 199 Text | Uses:40 17 | Used by:Timeline |
Symbol 200 Bitmap | Used by:201 | |
Symbol 201 Graphic | Uses:200 | Used by:Timeline |
Symbol 202 Font | Used by:203 | |
Symbol 203 Text | Uses:202 | Used by:204 |
Symbol 204 Button | Uses:203 | Used by:Timeline |
Symbol 205 Text | Uses:40 | Used by:Timeline |
Symbol 206 Bitmap | Used by:207 | |
Symbol 207 Graphic | Uses:206 | Used by:Timeline |
Symbol 208 Text | Uses:40 17 | Used by:Timeline |
Symbol 209 Button | Uses:42 43 44 | Used by:Timeline |
Symbol 210 Text | Uses:17 | Used by:Timeline |
Instance Names
"bar" | Symbol 15 MovieClip Frame 1 | Symbol 3 MovieClip |
"hitRange" | Symbol 59 MovieClip Frame 1 | Symbol 52 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
Protect (24) | Timeline Frame 1 | 0 bytes "" |
Labels
"loaded" | Symbol 15 MovieClip Frame 3 |
|