STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #60146 |
What's a button? |
Coding? |
EdItInG a BuTtOn? |
1 |
2 |
3 |
x |
Button Tutorial |
A button is like a movie clip but it can transport the flash to a different frame by clicking on it |
A button can be a rectangle |
or if you want it to be complicated, a full figure |
So you've got your figures |
You can turn any figure into a button easily. |
Just select the figure and press F8. OR Right click the figure and select convert to symbol |
F8 |
Name your figure, "button", (or whatever you wanna call it) and selet the button option |
Now how do you make your work? |
If you want a button to work you must use |
What's this "action script" you speak of? |
coding |
ction |
cript |
A S |
Are you smarter than an Actionscript noob? |
How do I insert action script? |
What is action script? |
Why/When whould I use it? |
I don't care about action script! |
Why/When would I use it? |
Action Script (a.k.a AS) is... |
a type of programming. It Can... |
make a work, program a game, and lots of other things We're gonna work on buttons |
To insert Action Script into a button, press F9, OR right click and select actions OR look at the bottom of the screen. You should see the work actions next to an arrow. Click the blue bar after selecting your figure |
too many words eh |
need help? |
Handlers ::: tell the button when to do the action |
on(release) ::: when the user 'unclicks' the button |
on(press) ::: as soon as the button's clicked |
on(rollover) ::: as soon as the button is rolled over by the cursor |
* varations explained here * |
( the common ones ) |
nextFrame()/prevFrame() |
This either moves the person to the next or prev frame |
gotoAndPlay()/gotoAndStop() This sends the person to a frame (put the frame number in between the parentheses) Play/Stop are Self-Explanatory |
ALL SCRIPTS ARE NON-COPYABLE AND CaSe SeNsItIve |
I aLwAyS wAnTeD tO dO tHaT |
nextScene()/prevScene() This obviously moves the person to a scene |
getUrl() explained |
here |
Mess around with AS to get others |
play()/stop() do you need an explanation? |
So now your button works... you want it too look cool? |
Wanna learn how to do that? (twss) |
Editing a Button: How to make a button change |
The Button's Appearance |
How does that button change when you click it or roll over it? ( no actionscript required ) |
"up" - what the button looks like normally ( when not clicked or rolled over ) |
"down" - what the button looks like after it's been clicked |
"hit" - what the button looks like when it's clicked and held down |
"over" - what the button looks like when the cursor rolls over it |
In the edit menu there should be these options: |
When you roll over this figure, it changes. That is "over" |
You can click this figures grey outline. That is it's "hit" area. |
How this figure looks when you don't do anything is "up" |
Good luck with your buttons. Hopefully you found everything you needed. If you didn't leave a review and tell me what you need to find. |
ActionScript [AS1/AS2]
Frame 2stop(); var junk = new Sound(); var techno = new Sound(); var awesome = new Sound();Frame 3stop();Frame 4stop();Frame 5stop();Frame 6stop();Frame 7stop();Frame 8stop();Frame 40stop();Frame 41stop();Frame 42stop();Frame 43stop();Frame 44stop();Frame 45stop();Frame 47stop();Frame 48stop();Frame 49stop();Frame 50stop();Frame 51stop();Frame 52stop(); junk.stop(); britmusic.stop(); awesome.stop(); var applause = new Sound(); var yeehaw = new Sound(); var cheer = new Sound(); applause.attachSound("applause"); yeehaw.attachSound("yeehaw"); cheer.attachSound("cheer"); applause.start(0, 1); yeehaw.start(0, 1); cheer.start(0, 1); cheer.setVolume(50); applause.setVolume(50); yeehaw.setVolume(100);Symbol 45 Buttonon (release) { getURL ("http://www.newgrounds.com", "_blank"); }Symbol 54 Buttonon (release) { startMovie(); }Symbol 56 MovieClip Frame 1function timerHandler() { if (!loadingComplete) { var _local4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * _local4; if (_local4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop ("loaded"); } return(undefined); } } dt = getTimer() - time; time = time + dt; frameAccum = frameAccum + dt; var _local3 = 0; while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) { advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } (frameAccum = frameAccum - FRAME_TIME); _local3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return(undefined); } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof(clip[childName]) == "movieclip") { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.3333333333333; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler();Symbol 56 MovieClip Frame 2stop();Symbol 61 Buttonon (release) { nextFrame(); }Symbol 64 Buttonon (release) { gotoAndPlay (9); }Symbol 66 Buttonon (release) { gotoAndPlay (47); }Symbol 68 Buttonon (release) { junk.start(0.1, 999999999); junk.attachSound("junk"); } on (release) { awesome.stop(); } on (release) { britmusic.stop(); }Symbol 70 Buttonon (release) { awesome.start(0.1, 999999999); awesome.attachSound("brit music"); } on (press) { junk.stop(); } on (press) { britmusic.stop(); }Symbol 72 Buttonon (release) { techno.start(0.1, 999999999); techno.attachSound("techno"); } on (press) { junk.stop(); } on (press) { awesome.stop(); }Symbol 74 Buttonon (release) { junk.stop(); } on (release) { britmusic.stop(); } on (release) { awesome.stop(); }Symbol 82 Buttonon (release) { prevFrame(); }Symbol 83 Buttonon (release) { nextFrame(); }Symbol 84 Buttonon (release) { junk.start(0.1, 999999999); junk.attachSound("Song1"); } on (release) { awesome.stop(); } on (release) { britmusic.stop(); }Symbol 107 Buttonon (release) { gotoAndPlay (9); }Symbol 112 Buttonon (release) { gotoAndPlay (9); }Symbol 122 Buttonon (release) { gotoAndPlay (47); }Symbol 124 Buttonon (release) { nextFrame(); }Symbol 125 Buttonon (release) { nextFrame(); }Symbol 126 Buttonon (release) { gotoAndPlay (42); }Symbol 127 Buttonon (release) { gotoAndStop (8); }Symbol 134 Buttonon (release) { gotoAndStop (46); }Symbol 140 Buttonon (release) { gotoAndStop (46); }Symbol 150 Buttonon (release) { gotoAndPlay (46); }Symbol 156 Buttonon (release) { gotoAndPlay (47); }Symbol 180 Buttonon (release) { gotoAndStop (1); }
Library Items
Symbol 1 Sound [yeehaw] | ||
Symbol 2 Sound [Song1] | ||
Symbol 3 Sound [cheer] | ||
Symbol 4 Sound [brit music] | ||
Symbol 5 Sound [applause] | ||
Symbol 6 Sound [techno] | ||
Symbol 7 Graphic | Used by:56 | |
Symbol 8 Graphic | Used by:9 45 | |
Symbol 9 MovieClip | Uses:8 | Used by:56 |
Symbol 10 Graphic | Used by:56 | |
Symbol 11 Graphic | Used by:56 | |
Symbol 12 Graphic | Used by:56 | |
Symbol 13 Graphic | Used by:14 | |
Symbol 14 MovieClip | Uses:13 | Used by:15 |
Symbol 15 MovieClip | Uses:14 | Used by:44 |
Symbol 16 Graphic | Used by:44 | |
Symbol 17 Graphic | Used by:18 19 | |
Symbol 18 MovieClip | Uses:17 | Used by:44 |
Symbol 19 MovieClip | Uses:17 | Used by:44 |
Symbol 20 Graphic | Used by:21 | |
Symbol 21 MovieClip | Uses:20 | Used by:42 |
Symbol 22 Graphic | Used by:26 | |
Symbol 23 Graphic | Used by:26 | |
Symbol 24 Graphic | Used by:25 | |
Symbol 25 MovieClip | Uses:24 | Used by:26 29 |
Symbol 26 MovieClip | Uses:22 23 25 | Used by:40 |
Symbol 27 Graphic | Used by:29 | |
Symbol 28 Graphic | Used by:29 | |
Symbol 29 MovieClip | Uses:27 28 25 | Used by:40 |
Symbol 30 Graphic | Used by:33 | |
Symbol 31 Graphic | Used by:33 36 | |
Symbol 32 Graphic | Used by:33 | |
Symbol 33 MovieClip | Uses:30 31 32 | Used by:37 |
Symbol 34 Graphic | Used by:36 | |
Symbol 35 Graphic | Used by:36 | |
Symbol 36 MovieClip | Uses:34 31 35 | Used by:37 |
Symbol 37 MovieClip | Uses:33 36 | Used by:40 |
Symbol 38 Graphic | Used by:39 | |
Symbol 39 MovieClip | Uses:38 | Used by:40 |
Symbol 40 MovieClip | Uses:26 29 37 39 | Used by:41 |
Symbol 41 MovieClip | Uses:40 | Used by:42 |
Symbol 42 MovieClip | Uses:21 41 | Used by:44 |
Symbol 43 Graphic | Used by:44 | |
Symbol 44 MovieClip | Uses:15 16 18 19 42 43 | Used by:56 |
Symbol 45 Button | Uses:8 | Used by:56 |
Symbol 46 Graphic | Used by:48 | |
Symbol 47 Graphic | Used by:48 | |
Symbol 48 MovieClip | Uses:46 47 | Used by:56 |
Symbol 49 Graphic | Used by:54 | |
Symbol 50 Graphic | Used by:54 | |
Symbol 51 Graphic | Used by:54 | |
Symbol 52 Graphic | Used by:54 | |
Symbol 53 Graphic | Used by:54 | |
Symbol 54 Button | Uses:49 50 51 52 53 | Used by:56 |
Symbol 55 Graphic | Used by:56 | |
Symbol 56 MovieClip | Uses:7 9 10 11 12 44 45 48 54 55 | Used by:Timeline |
Symbol 57 Graphic | Used by:Timeline | |
Symbol 58 Graphic | Used by:61 | |
Symbol 59 Font | Used by:60 63 65 67 69 71 73 75 77 86 87 94 95 96 98 102 103 105 106 108 109 110 111 113 115 117 119 121 123 128 129 130 131 132 133 135 136 137 138 139 141 142 143 144 145 146 147 148 149 151 152 154 155 158 159 160 165 166 167 168 169 170 171 177 178 | |
Symbol 60 Text | Uses:59 | Used by:61 |
Symbol 61 Button | Uses:58 60 | Used by:Timeline |
Symbol 62 Graphic | Used by:64 | |
Symbol 63 Text | Uses:59 | Used by:64 |
Symbol 64 Button | Uses:62 63 | Used by:Timeline |
Symbol 65 Text | Uses:59 | Used by:66 |
Symbol 66 Button | Uses:65 | Used by:Timeline |
Symbol 67 Text | Uses:59 | Used by:68 84 |
Symbol 68 Button | Uses:67 | Used by:Timeline |
Symbol 69 Text | Uses:59 | Used by:70 |
Symbol 70 Button | Uses:69 | Used by:Timeline |
Symbol 71 Text | Uses:59 | Used by:72 |
Symbol 72 Button | Uses:71 | Used by:Timeline |
Symbol 73 Text | Uses:59 | Used by:74 |
Symbol 74 Button | Uses:73 | Used by:Timeline |
Symbol 75 Text | Uses:59 | Used by:Timeline |
Symbol 76 Graphic | Used by:Timeline | |
Symbol 77 Text | Uses:59 | Used by:Timeline |
Symbol 78 Graphic | Used by:82 83 112 127 156 | |
Symbol 79 Graphic | Used by:82 83 112 127 156 | |
Symbol 80 Graphic | Used by:82 83 112 127 156 | |
Symbol 81 Graphic | Used by:82 83 112 127 156 | |
Symbol 82 Button | Uses:78 79 80 81 | Used by:Timeline |
Symbol 83 Button | Uses:78 79 80 81 | Used by:Timeline |
Symbol 84 Button | Uses:67 | Used by:Timeline |
Symbol 85 Graphic | Used by:Timeline | |
Symbol 86 Text | Uses:59 | Used by:Timeline |
Symbol 87 Text | Uses:59 | Used by:Timeline |
Symbol 88 Graphic | Used by:90 | |
Symbol 89 Graphic | Used by:90 | |
Symbol 90 Button | Uses:88 89 | Used by:Timeline |
Symbol 91 Graphic | Used by:92 | |
Symbol 92 Button | Uses:91 | Used by:Timeline |
Symbol 93 Graphic | Used by:Timeline | |
Symbol 94 Text | Uses:59 | Used by:Timeline |
Symbol 95 Text | Uses:59 | Used by:Timeline |
Symbol 96 Text | Uses:59 | Used by:Timeline |
Symbol 97 Graphic | Used by:101 | |
Symbol 98 Text | Uses:59 | Used by:101 |
Symbol 99 Graphic | Used by:101 | |
Symbol 100 Graphic | Used by:101 | |
Symbol 101 Button | Uses:97 98 99 100 | Used by:Timeline |
Symbol 102 Text | Uses:59 | Used by:Timeline |
Symbol 103 Text | Uses:59 | Used by:Timeline |
Symbol 104 Graphic | Used by:Timeline | |
Symbol 105 Text | Uses:59 | Used by:Timeline |
Symbol 106 Text | Uses:59 | Used by:107 |
Symbol 107 Button | Uses:106 | Used by:Timeline |
Symbol 108 Text | Uses:59 | Used by:Timeline |
Symbol 109 Text | Uses:59 | Used by:Timeline |
Symbol 110 Text | Uses:59 | Used by:Timeline |
Symbol 111 Text | Uses:59 | Used by:Timeline |
Symbol 112 Button | Uses:78 79 80 81 | Used by:Timeline |
Symbol 113 Text | Uses:59 | Used by:Timeline |
Symbol 114 Graphic | Used by:126 Timeline | |
Symbol 115 Text | Uses:59 | Used by:126 Timeline |
Symbol 116 Graphic | Used by:Timeline | |
Symbol 117 Text | Uses:59 | Used by:125 Timeline |
Symbol 118 Graphic | Used by:Timeline | |
Symbol 119 Text | Uses:59 | Used by:Timeline |
Symbol 120 Graphic | Used by:122 124 125 | |
Symbol 121 Text | Uses:59 | Used by:122 |
Symbol 122 Button | Uses:120 121 | Used by:Timeline |
Symbol 123 Text | Uses:59 | Used by:124 |
Symbol 124 Button | Uses:120 123 | Used by:Timeline |
Symbol 125 Button | Uses:120 117 | Used by:Timeline |
Symbol 126 Button | Uses:114 115 | Used by:Timeline |
Symbol 127 Button | Uses:78 79 80 81 | Used by:Timeline |
Symbol 128 Text | Uses:59 | Used by:Timeline |
Symbol 129 Text | Uses:59 | Used by:Timeline |
Symbol 130 Text | Uses:59 | Used by:Timeline |
Symbol 131 Text | Uses:59 | Used by:Timeline |
Symbol 132 Text | Uses:59 | Used by:Timeline |
Symbol 133 Text | Uses:59 | Used by:134 |
Symbol 134 Button | Uses:133 | Used by:Timeline |
Symbol 135 Text | Uses:59 | Used by:Timeline |
Symbol 136 Text | Uses:59 | Used by:Timeline |
Symbol 137 Text | Uses:59 | Used by:Timeline |
Symbol 138 Text | Uses:59 | Used by:Timeline |
Symbol 139 Text | Uses:59 | Used by:140 |
Symbol 140 Button | Uses:139 | Used by:Timeline |
Symbol 141 Text | Uses:59 | Used by:Timeline |
Symbol 142 Text | Uses:59 | Used by:Timeline |
Symbol 143 Text | Uses:59 | Used by:Timeline |
Symbol 144 Text | Uses:59 | Used by:Timeline |
Symbol 145 Text | Uses:59 | Used by:Timeline |
Symbol 146 Text | Uses:59 | Used by:Timeline |
Symbol 147 Text | Uses:59 | Used by:Timeline |
Symbol 148 Text | Uses:59 | Used by:Timeline |
Symbol 149 Text | Uses:59 | Used by:150 |
Symbol 150 Button | Uses:149 | Used by:Timeline |
Symbol 151 Text | Uses:59 | Used by:Timeline |
Symbol 152 Text | Uses:59 | Used by:Timeline |
Symbol 153 Graphic | Used by:Timeline | |
Symbol 154 Text | Uses:59 | Used by:Timeline |
Symbol 155 Text | Uses:59 | Used by:Timeline |
Symbol 156 Button | Uses:78 79 80 81 | Used by:Timeline |
Symbol 157 Graphic | Used by:Timeline | |
Symbol 158 Text | Uses:59 | Used by:Timeline |
Symbol 159 Text | Uses:59 | Used by:Timeline |
Symbol 160 Text | Uses:59 | Used by:Timeline |
Symbol 161 Graphic | Used by:164 | |
Symbol 162 Graphic | Used by:164 | |
Symbol 163 Graphic | Used by:164 | |
Symbol 164 Button | Uses:161 162 163 | Used by:Timeline |
Symbol 165 Text | Uses:59 | Used by:Timeline |
Symbol 166 Text | Uses:59 | Used by:Timeline |
Symbol 167 Text | Uses:59 | Used by:Timeline |
Symbol 168 Text | Uses:59 | Used by:Timeline |
Symbol 169 Text | Uses:59 | Used by:Timeline |
Symbol 170 Text | Uses:59 | Used by:Timeline |
Symbol 171 Text | Uses:59 | Used by:Timeline |
Symbol 172 Graphic | Used by:176 | |
Symbol 173 Graphic | Used by:176 | |
Symbol 174 Graphic | Used by:176 | |
Symbol 175 Graphic | Used by:176 | |
Symbol 176 Button | Uses:172 173 174 175 | Used by:Timeline |
Symbol 177 Text | Uses:59 | Used by:Timeline |
Symbol 178 Text | Uses:59 | Used by:Timeline |
Symbol 179 Graphic | Used by:180 | |
Symbol 180 Button | Uses:179 | Used by:Timeline |
Instance Names
"bar" | Symbol 56 MovieClip Frame 1 | Symbol 9 MovieClip |
"tankLogo" | Symbol 56 MovieClip Frame 1 | Symbol 44 MovieClip |
"loadingText" | Symbol 56 MovieClip Frame 1 | Symbol 48 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
ExportAssets (56) | Timeline Frame 1 | Symbol 1 as "yeehaw" |
ExportAssets (56) | Timeline Frame 1 | Symbol 2 as "Song1" |
ExportAssets (56) | Timeline Frame 1 | Symbol 3 as "cheer" |
ExportAssets (56) | Timeline Frame 1 | Symbol 4 as "brit music" |
ExportAssets (56) | Timeline Frame 1 | Symbol 5 as "applause" |
ExportAssets (56) | Timeline Frame 1 | Symbol 6 as "techno" |
Labels
"loaded" | Symbol 56 MovieClip Frame 2 |
|