STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229456 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2574 · P5148 |
This is the info page for Flash #56129 |
Hello and welcome to this tutorial! |
Here I'll show you how to make an awesome preloader for your flash |
:D |
I'll explain EVERYTHING you have to do so you don't get lost. |
<p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">loadedbytes = getBytesLoaded();</font></p><p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">totalbytes = getBytesTotal();</font></p><p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">percentbytes = int(loadedbytes/(totalbytes/100));</font></p><p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">tellTarget (_root.loader) {</font></p><p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">gotoAndStop (_root.percentbytes);</font></p><p align="left"><font face="Trebuchet MS" size="16" color="#000000" letterSpacing="0.000000" kerning="1">}</font></p> |
First of all, Open your flash document and open actions on the very first frame. then copy-paste this code |
<p align="left"><font face="Trebuchet MS" size="22" color="#000000" letterSpacing="0.000000" kerning="1"><b>Then, insert a blank keyframe right <sbr />next to the first one and open actions. <sbr />Then copy-paste this code</b></font></p> |
if (loadedbytes == totalbytes) { nextScene (); }else{ gotoAndPlay (1); } |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Now, we have to double click layer 1 <sbr />and then change his name to "actions"</b></font></p> |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Don't add the "s</b></font></p> |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>We should now have something like this</b></font></p> |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Now add a layer and name it "loader", so don't </b></font></p><p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>touch anything and you should see something </b></font></p><p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>like this</b></font></p> |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Don't add the "s</b></font></p> |
<p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Now on the loader frame create a </b></font></p><p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>Movie Clip (Ctrl+F8)</b></font></p><p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>and name it loader. Then inside the movie </b></font></p><p align="left"><font face="Trebuchet MS" size="20" color="#000000" letterSpacing="0.000000" kerning="0"><b>clip, create 2 layers so you now have 3.</b></font></p> |
Now we have to create frames in all of the 3 layers to make they all reach 100 |
Now, on Layer 3, make a rectangle, with no fill. |
On Layer 2, make the fill of the rectangle of the colour you want, but ONLY the fill, and make it fit on the border |
Now click on the circle under the eye and under the lock, on Layer 2, so that it looks like this |
On Layer 1, add the same fill as in Layer 2, in the same place. |
On Layer 1, go to frame 100 and turn it into a keyframe. |
Now, on frame 1 of Layer 1, move the fill so that its aligned to the left side of the border |
Now, select all frames from Layer 1, from 1 to 100, and Click Create Motion Tween. |
Now that you have the tween, right-click Layer 2 and click mask. |
Then click the cross on Layer 2 so that it dissapears |
You should see this: |
So, we've finished the bar! But it's not done yet. We still have o add the %. |
So go out of your bar and place a loader on the center of the screen on loader Layer (If you still haven't). |
Now, under the bar, create a text and write a 0. And change it to Dynamic text |
Next to the dynamic text add a static text with the sign % |
Now, right next to where it says Var: write "percentbytes" with no ". |
At this point you will think you have all done. In fact, its true, but here we can add the bytes you have loaded :O |
So now create another dynamic text with the 0 inside it. In this case, write "loadedbytes". |
Now in a static text write an / and put it right next to the 0. |
Now, write ANOTHER dynamic text with a 0 and put it right next to the /. In the var name write totalbytes |
Create a static text with "bytes" wrote on it next to the previous 0 |
Congratulations! You've succesfully created a loader bar! I hope this helps your flash :D |
ActionScript [AS1/AS2]
Frame 51stop();Frame 52stop();Frame 53stop();Frame 54stop();Frame 55stop();Frame 56stop();Frame 57stop();Frame 58stop();Frame 59stop();Frame 60stop();Frame 61stop();Frame 62stop();Frame 63stop();Frame 64stop();Frame 65stop();Frame 66stop();Frame 67stop();Symbol 46 Buttonon (release) { getURL ("http://www.newgrounds.com", "_blank"); }Symbol 48 MovieClip Frame 40stop();Symbol 74 Buttonon (release) { startMovie(); }Symbol 75 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 86 Buttonon (release) { nextFrame(); }Symbol 91 Buttonon (release) { prevFrame(); }
Library Items
Symbol 1 Graphic | Used by:75 | |
Symbol 2 Graphic | Used by:75 | |
Symbol 3 Graphic | Used by:4 | |
Symbol 4 MovieClip | Uses:3 | Used by:75 |
Symbol 5 Graphic | Used by:7 | |
Symbol 6 Graphic | Used by:7 | |
Symbol 7 MovieClip | Uses:5 6 | Used by:75 |
Symbol 8 Graphic | Used by:75 | |
Symbol 9 Graphic | Used by:75 | |
Symbol 10 Graphic | Used by:75 | |
Symbol 11 Graphic | Used by:18 48 | |
Symbol 12 Graphic | Used by:18 48 | |
Symbol 13 Graphic | Used by:18 48 | |
Symbol 14 Graphic | Used by:18 48 | |
Symbol 15 Graphic | Used by:18 48 | |
Symbol 16 Graphic | Used by:18 48 | |
Symbol 17 Graphic | Used by:18 48 | |
Symbol 18 MovieClip | Uses:11 12 13 14 15 16 17 | Used by:75 |
Symbol 19 Graphic | Used by:75 | |
Symbol 20 Graphic | Used by:21 | |
Symbol 21 MovieClip | Uses:20 | Used by:75 |
Symbol 22 Graphic | Used by:23 | |
Symbol 23 MovieClip | Uses:22 | Used by:43 |
Symbol 24 Graphic | Used by:28 | |
Symbol 25 Graphic | Used by:28 | |
Symbol 26 Graphic | Used by:27 | |
Symbol 27 MovieClip | Uses:26 | Used by:28 31 |
Symbol 28 MovieClip | Uses:24 25 27 | Used by:42 |
Symbol 29 Graphic | Used by:31 | |
Symbol 30 Graphic | Used by:31 | |
Symbol 31 MovieClip | Uses:29 30 27 | Used by:42 |
Symbol 32 Graphic | Used by:35 | |
Symbol 33 Graphic | Used by:35 38 | |
Symbol 34 Graphic | Used by:35 | |
Symbol 35 MovieClip | Uses:32 33 34 | Used by:39 |
Symbol 36 Graphic | Used by:38 | |
Symbol 37 Graphic | Used by:38 | |
Symbol 38 MovieClip | Uses:36 33 37 | Used by:39 |
Symbol 39 MovieClip | Uses:35 38 | Used by:42 |
Symbol 40 Graphic | Used by:41 | |
Symbol 41 MovieClip | Uses:40 | Used by:42 |
Symbol 42 MovieClip | Uses:28 31 39 41 | Used by:43 |
Symbol 43 MovieClip | Uses:23 42 | Used by:75 |
Symbol 44 Graphic | Used by:75 | |
Symbol 45 Graphic | Used by:46 | |
Symbol 46 Button | Uses:45 | Used by:75 |
Symbol 47 Graphic | Used by:48 | |
Symbol 48 MovieClip | Uses:11 12 13 14 15 16 17 47 | Used by:75 |
Symbol 49 Graphic | Used by:75 | |
Symbol 50 Graphic | Used by:75 | |
Symbol 51 Graphic | Used by:75 | |
Symbol 52 Graphic | Used by:75 | |
Symbol 53 Graphic | Used by:75 | |
Symbol 54 Graphic | Used by:75 | |
Symbol 55 Graphic | Used by:75 | |
Symbol 56 Graphic | Used by:75 | |
Symbol 57 Graphic | Used by:75 | |
Symbol 58 Graphic | Used by:75 | |
Symbol 59 Graphic | Used by:75 | |
Symbol 60 Graphic | Used by:75 | |
Symbol 61 ShapeTweening | Used by:75 | |
Symbol 62 Graphic | Used by:75 | |
Symbol 63 ShapeTweening | Used by:75 | |
Symbol 64 ShapeTweening | Used by:75 | |
Symbol 65 Graphic | Used by:75 | |
Symbol 66 Graphic | Used by:74 | |
Symbol 67 Graphic | Used by:74 | |
Symbol 68 Graphic | Used by:74 | |
Symbol 69 Graphic | Used by:74 | |
Symbol 70 Graphic | Used by:74 | |
Symbol 71 Graphic | Used by:73 | |
Symbol 72 Graphic | Used by:73 | |
Symbol 73 MovieClip | Uses:71 72 | Used by:74 |
Symbol 74 Button | Uses:66 67 68 69 70 73 | Used by:75 |
Symbol 75 MovieClip | Uses:1 2 4 7 8 9 10 18 19 21 43 44 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 74 | Used by:Timeline |
Symbol 76 Graphic | Used by:Timeline | |
Symbol 77 Sound | Used by:Timeline | |
Symbol 78 Font | Used by:79 80 81 82 94 96 101 102 103 105 108 110 118 119 122 124 125 130 132 136 137 138 142 143 144 148 149 153 154 158 159 160 164 | |
Symbol 79 Text | Uses:78 | Used by:Timeline |
Symbol 80 Text | Uses:78 | Used by:Timeline |
Symbol 81 Text | Uses:78 | Used by:Timeline |
Symbol 82 Text | Uses:78 | Used by:Timeline |
Symbol 83 Graphic | Used by:86 | |
Symbol 84 Graphic | Used by:86 | |
Symbol 85 Graphic | Used by:86 | |
Symbol 86 Button | Uses:83 84 85 | Used by:Timeline |
Symbol 87 Graphic | Used by:Timeline | |
Symbol 88 Graphic | Used by:91 | |
Symbol 89 Graphic | Used by:91 | |
Symbol 90 Graphic | Used by:91 | |
Symbol 91 Button | Uses:88 89 90 | Used by:Timeline |
Symbol 92 Font | Used by:93 97 114 | |
Symbol 93 EditableText | Uses:92 | Used by:Timeline |
Symbol 94 Text | Uses:78 | Used by:Timeline |
Symbol 95 Graphic | Used by:Timeline | |
Symbol 96 EditableText | Uses:78 | Used by:Timeline |
Symbol 97 EditableText | Uses:92 | Used by:Timeline |
Symbol 98 Graphic | Used by:Timeline | |
Symbol 99 Bitmap | Used by:100 | |
Symbol 100 Graphic | Uses:99 | Used by:Timeline |
Symbol 101 EditableText | Uses:78 | Used by:Timeline |
Symbol 102 EditableText | Uses:78 | Used by:Timeline |
Symbol 103 EditableText | Uses:78 | Used by:Timeline |
Symbol 104 Graphic | Used by:Timeline | |
Symbol 105 EditableText | Uses:78 | Used by:Timeline |
Symbol 106 Bitmap | Used by:107 | |
Symbol 107 Graphic | Uses:106 | Used by:Timeline |
Symbol 108 EditableText | Uses:78 | Used by:Timeline |
Symbol 109 Graphic | Used by:Timeline | |
Symbol 110 EditableText | Uses:78 | Used by:Timeline |
Symbol 111 Bitmap | Used by:112 | |
Symbol 112 Graphic | Uses:111 | Used by:Timeline |
Symbol 113 Graphic | Used by:Timeline | |
Symbol 114 Text | Uses:92 | Used by:Timeline |
Symbol 115 Bitmap | Used by:116 | |
Symbol 116 Graphic | Uses:115 | Used by:Timeline |
Symbol 117 Graphic | Used by:Timeline | |
Symbol 118 Text | Uses:78 | Used by:Timeline |
Symbol 119 Text | Uses:78 | Used by:Timeline |
Symbol 120 Bitmap | Used by:121 | |
Symbol 121 Graphic | Uses:120 | Used by:Timeline |
Symbol 122 Text | Uses:78 | Used by:Timeline |
Symbol 123 Graphic | Used by:Timeline | |
Symbol 124 Text | Uses:78 | Used by:Timeline |
Symbol 125 Text | Uses:78 | Used by:Timeline |
Symbol 126 Bitmap | Used by:127 | |
Symbol 127 Graphic | Uses:126 | Used by:Timeline |
Symbol 128 Bitmap | Used by:129 | |
Symbol 129 Graphic | Uses:128 | Used by:Timeline |
Symbol 130 Text | Uses:78 | Used by:Timeline |
Symbol 131 Graphic | Used by:Timeline | |
Symbol 132 Text | Uses:78 | Used by:Timeline |
Symbol 133 Bitmap | Used by:134 | |
Symbol 134 Graphic | Uses:133 | Used by:Timeline |
Symbol 135 Graphic | Used by:Timeline | |
Symbol 136 Text | Uses:78 | Used by:Timeline |
Symbol 137 Text | Uses:78 | Used by:Timeline |
Symbol 138 Text | Uses:78 | Used by:Timeline |
Symbol 139 Bitmap | Used by:140 | |
Symbol 140 Graphic | Uses:139 | Used by:Timeline |
Symbol 141 Graphic | Used by:Timeline | |
Symbol 142 Text | Uses:78 | Used by:Timeline |
Symbol 143 Text | Uses:78 | Used by:Timeline |
Symbol 144 Text | Uses:78 | Used by:Timeline |
Symbol 145 Bitmap | Used by:146 | |
Symbol 146 Graphic | Uses:145 | Used by:Timeline |
Symbol 147 Graphic | Used by:Timeline | |
Symbol 148 Text | Uses:78 | Used by:Timeline |
Symbol 149 Text | Uses:78 | Used by:Timeline |
Symbol 150 Bitmap | Used by:151 | |
Symbol 151 Graphic | Uses:150 | Used by:Timeline |
Symbol 152 Graphic | Used by:Timeline | |
Symbol 153 Text | Uses:78 | Used by:Timeline |
Symbol 154 Text | Uses:78 | Used by:Timeline |
Symbol 155 Bitmap | Used by:156 | |
Symbol 156 Graphic | Uses:155 | Used by:Timeline |
Symbol 157 Graphic | Used by:Timeline | |
Symbol 158 Text | Uses:78 | Used by:Timeline |
Symbol 159 Text | Uses:78 | Used by:Timeline |
Symbol 160 Text | Uses:78 | Used by:Timeline |
Symbol 161 Bitmap | Used by:163 | |
Symbol 162 Bitmap | Used by:163 | |
Symbol 163 Graphic | Uses:161 162 | Used by:Timeline |
Symbol 164 Text | Uses:78 | Used by:Timeline |
Symbol 165 Bitmap | Used by:166 | |
Symbol 166 Graphic | Uses:165 | Used by:Timeline |
Instance Names
"bar" | Symbol 75 MovieClip Frame 1 | Symbol 4 MovieClip |
"bargfx" | Symbol 75 MovieClip Frame 1 | Symbol 7 MovieClip |
"tankLogo" | Symbol 75 MovieClip Frame 1 | Symbol 43 MovieClip |
"bargfx" | Symbol 75 MovieClip Frame 2 | Symbol 7 MovieClip |
"loadingText" | Symbol 75 MovieClip Frame 2 | Symbol 48 MovieClip |
"bargfx" | Symbol 75 MovieClip Frame 20 | Symbol 7 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS1/AS2. |
Labels
"LOAD" | Symbol 75 MovieClip Frame 1 |
"COMPLETE_STOP" | Symbol 75 MovieClip Frame 2 |
|