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 #75933 |
0 |
0 |
0 |
Bytes Loaded: |
Total Bytes: |
Percent Loaded: |
Learn to Make a Preloader |
Learn! |
Learn! |
In this lesson we will cover: |
The Actions |
The Actions |
Adding the Bar |
Adding Percentages |
Lesson 1-A |
The Actions |
1 - Giving the First Frame Actions |
Select the first frame and open the "Actions" panel and put in: |
loadedbytes = getBytesLoaded(); totalbytes = getBytesTotal(); percentbytes = int(loadedbytes/(totalbytes/100)); tellTarget (_root.loader) { gotoAndStop (_root.percentbytes); } |
2 - Giving the Second Frame Actions |
Create a blank ketframe and then open the "Actions" panel and insert: |
if (loadedbytes == totalbytes) { nextScene (); }else{ gotoAndPlay (1); } |
2 - Finishing the Actions |
Find the name of the layer you are using, and double click it. |
Once it becomes editable, rename it "actions" |
Don't include the quote marks. |
Lesson 1-B |
Adding the Bar |
1 - Creating the Bar's Layer |
Create a new layer, and call it "loader" |
This layer will hold the loading bar |
2 - Creating the Bar Movie Clip |
While in the "loader" layer, press CTRL+F8 |
Click the radio button labeled "Movie Clip", name it "loader", and hit ok. |
Now that you are in the new MC, add TWO layers. |
In the top layer make a rectangle without any fill color. |
Now on the next layer down, make a rectangle the same size only this time have there be no lines and ONLY FILL. |
Then put the same exact thing on the final bottom layer. Make sure that the rectangle on the first two layers line up perfectly. The last one, however, should be moved all the way to the left side of the others. |
Now in every layer, goto the 100th frame and insert FRAMES |
Goto the second layer and hide + lock it. |
This makes it so that you can no longer see or edit the second layer. This can be undone at any time. |
Now go to frame 100 of the bottom layer, and make it a keyframe |
Now move the rectangle in that frame so it aligns with thoe outline of the rectangle in the top layer. |
Highlight every frame in the bottom layer, then right-click and select "Create Motion tween" |
This will make the rectangle on the bottom layer move as the movie loads. |
Now right-click on the second layer and select "Mask" |
This will hide and lock both the middle and bottom layers. Unlick the "X" that is under the eye for layer 2. |
2 - Putting the Bar On |
Now go back to the main stage. |
Click on the first frame of the layer called "loader". Now press F11. This will open the library. Now find the MC we just created and drag in onto the stage into the first frame of the top layer. Select the MC and open the properties. Change the instance name to "loader". |
Congratulations! |
You have just made a loader bar. |
If your loader bar does not work like the one above, you may need to go back a few steps. |
Lesson 1-C |
Adding Percentages |
1 - Adding the Loaded Percentage |
Select the text tool and make a text box with a "0" in it |
Select the box, open the "Properties" panel, change it to dynamic text, and give it the var name "percentbytes". Then add a static text box with %" in it behind the percent loaded. |
2 - Adding the Bytes Loaded |
Select the box, open the "Properties" panel, change it to dynamic text, and give it the var name "percentbytes". Then add a static text box with "Bytes Loaded" in it above the loadedbytes box, |
3 - Adding the Total Bytes |
Select the box, open the "Properties" panel, change it to dynamic text, and give it the var name "totalbytes. Then add a static text box with "Total Bytes" in it above the totalbytes box, |
You have made a fully working preloader! |
If you have any questions, just email me at rejectproductions@hotmail.com! |
0 |
0 |
0 |
ActionScript [AS1/AS2]
Frame 1loadedbytes = getBytesLoaded(); totalbytes = getBytesTotal(); percentbytes = int(loadedbytes / (totalbytes / 100)); tellTarget (_root.loader) { gotoAndStop(_root.percentbytes); };Frame 2if (loadedbytes == totalbytes) { gotoAndPlay (3); } else { gotoAndPlay (1); }Frame 3play();Frame 31gotoAndPlay(nextScene);Frame 47stop(); Mouse.show();Frame 48play();Frame 69play();Frame 117stop();Frame 118stop();Frame 119stop();Frame 120play();Frame 144stop();Frame 145stop();Frame 146stop();Frame 147stop();Frame 148stop(); Mouse.show();Frame 149stop();Frame 150stop();Frame 151stop();Frame 152stop();Frame 153stop();Frame 154stop();Frame 155play(); Mouse.show();Frame 179stop();Frame 180stop();Frame 181stop();Frame 182stop();Symbol 4 MovieClip Frame 100stop();Symbol 14 MovieClip Frame 30stop();Symbol 18 Buttonon (release) { getURL ("http://www.rejectpro.cjb.net", "_blank"); }Symbol 20 MovieClip Frame 30stop();Symbol 31 Buttonon (release) { gotoAndStop (48); }Symbol 46 Buttonon (release) { nextFrame(); }Symbol 55 Buttonon (release) { prevFrame(); }Symbol 66 Buttonon (release) { nextFrame(); }Symbol 130 Buttonon (release) { gotoAndStop (47); }
Library Items
Symbol 1 Graphic | Used by:4 109 | ||
Symbol 2 Graphic | Used by:4 109 | ||
Symbol 3 Graphic | Used by:4 | ||
Symbol 4 MovieClip | Uses:1 2 3 | Used by:Timeline | |
Symbol 5 Font | Used by:6 7 8 9 10 11 25 26 27 33 34 35 36 37 38 39 40 49 56 60 62 63 64 70 76 102 105 106 107 110 111 112 113 114 117 120 121 122 126 131 132 133 134 | ||
Symbol 6 EditableText | Uses:5 | Used by:Timeline | |
Symbol 7 EditableText | Uses:5 | Used by:Timeline | |
Symbol 8 EditableText | Uses:5 | Used by:Timeline | |
Symbol 9 Text | Uses:5 | Used by:Timeline | |
Symbol 10 Text | Uses:5 | Used by:Timeline | |
Symbol 11 Text | Uses:5 | Used by:Timeline | |
Symbol 12 ShapeTweening | Used by:14 18 | ||
Symbol 13 Graphic | Used by:14 20 | ||
Symbol 14 MovieClip | Uses:12 13 | Used by:17 | |
Symbol 15 Graphic | Used by:17 18 | ||
Symbol 16 Graphic | Used by:17 18 | ||
Symbol 17 MovieClip | Uses:14 15 16 | Used by:18 | |
Symbol 18 Button | Uses:17 12 15 16 | Used by:Timeline | |
Symbol 19 ShapeTweening | Used by:20 | ||
Symbol 20 MovieClip | Uses:19 13 | Used by:23 | |
Symbol 21 Graphic | Used by:23 | ||
Symbol 22 Graphic | Used by:23 | ||
Symbol 23 MovieClip | Uses:20 21 22 | Used by:Timeline | |
Symbol 24 Graphic | Used by:Timeline | ||
Symbol 25 Text | Uses:5 | Used by:Timeline | |
Symbol 26 Text | Uses:5 | Used by:Timeline | |
Symbol 27 Text | Uses:5 | Used by:Timeline | |
Symbol 28 Graphic | Used by:31 | ||
Symbol 29 Graphic | Used by:31 | ||
Symbol 30 Graphic | Used by:31 | ||
Symbol 31 Button | Uses:28 29 30 | Used by:Timeline | |
Symbol 32 Graphic | Used by:Timeline | ||
Symbol 33 Text | Uses:5 | Used by:Timeline | |
Symbol 34 Text | Uses:5 | Used by:Timeline | |
Symbol 35 Text | Uses:5 | Used by:Timeline | |
Symbol 36 Text | Uses:5 | Used by:Timeline | |
Symbol 37 Text | Uses:5 | Used by:Timeline | |
Symbol 38 Text | Uses:5 | Used by:Timeline | |
Symbol 39 Text | Uses:5 | Used by:Timeline | |
Symbol 40 Text | Uses:5 | Used by:Timeline | |
Symbol 41 Font | Used by:42 50 57 61 65 69 71 72 76 77 81 82 83 86 87 90 91 94 95 98 99 103 104 | ||
Symbol 42 Text | Uses:41 | Used by:Timeline | |
Symbol 43 Graphic | Used by:46 66 | ||
Symbol 44 Graphic | Used by:46 66 | ||
Symbol 45 Graphic | Used by:46 66 | ||
Symbol 46 Button | Uses:43 44 45 | Used by:Timeline | |
Symbol 47 Font | Used by:48 51 | ||
Symbol 48 EditableText | Uses:47 | Used by:Timeline | |
Symbol 49 Text | Uses:5 | Used by:Timeline | |
Symbol 50 Text | Uses:41 | Used by:Timeline | |
Symbol 51 EditableText | Uses:47 | Used by:Timeline | |
Symbol 52 Graphic | Used by:55 | ||
Symbol 53 Graphic | Used by:55 | ||
Symbol 54 Graphic | Used by:55 | ||
Symbol 55 Button | Uses:52 53 54 | Used by:Timeline | |
Symbol 56 Text | Uses:5 | Used by:Timeline | |
Symbol 57 Text | Uses:41 | Used by:Timeline | |
Symbol 58 Bitmap | Used by:59 | ||
Symbol 59 Graphic | Uses:58 | Used by:Timeline | |
Symbol 60 Text | Uses:5 | Used by:Timeline | |
Symbol 61 Text | Uses:41 | Used by:Timeline | |
Symbol 62 Text | Uses:5 | Used by:Timeline | |
Symbol 63 Text | Uses:5 | Used by:Timeline | |
Symbol 64 Text | Uses:5 | Used by:Timeline | |
Symbol 65 Text | Uses:41 | Used by:Timeline | |
Symbol 66 Button | Uses:43 44 45 | Used by:Timeline | |
Symbol 67 Bitmap | Used by:68 | ||
Symbol 68 Graphic | Uses:67 | Used by:Timeline | |
Symbol 69 Text | Uses:41 | Used by:Timeline | |
Symbol 70 Text | Uses:5 | Used by:Timeline | |
Symbol 71 Text | Uses:41 | Used by:Timeline | |
Symbol 72 Text | Uses:41 | Used by:Timeline | |
Symbol 73 Bitmap | Used by:74 | ||
Symbol 74 Graphic | Uses:73 | Used by:Timeline | |
Symbol 75 Graphic | Used by:Timeline | ||
Symbol 76 Text | Uses:41 5 | Used by:Timeline | |
Symbol 77 Text | Uses:41 | 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:41 | Used by:Timeline | |
Symbol 82 Text | Uses:41 | Used by:Timeline | |
Symbol 83 Text | Uses:41 | Used by:Timeline | |
Symbol 84 Bitmap | Used by:85 | ||
Symbol 85 Graphic | Uses:84 | Used by:Timeline | |
Symbol 86 Text | Uses:41 | Used by:Timeline | |
Symbol 87 Text | Uses:41 | Used by:Timeline | |
Symbol 88 Bitmap | Used by:89 | ||
Symbol 89 Graphic | Uses:88 | Used by:Timeline | |
Symbol 90 Text | Uses:41 | Used by:Timeline | |
Symbol 91 Text | Uses:41 | Used by:Timeline | |
Symbol 92 Bitmap | Used by:93 | ||
Symbol 93 Graphic | Uses:92 | Used by:Timeline | |
Symbol 94 Text | Uses:41 | Used by:Timeline | |
Symbol 95 Text | Uses:41 | Used by:Timeline | |
Symbol 96 Bitmap | Used by:97 | ||
Symbol 97 Graphic | Uses:96 | Used by:Timeline | |
Symbol 98 Text | Uses:41 | Used by:Timeline | |
Symbol 99 Text | Uses:41 | Used by:Timeline | |
Symbol 100 Bitmap | Used by:101 | ||
Symbol 101 Graphic | Uses:100 | Used by:Timeline | |
Symbol 102 Text | Uses:5 | Used by:Timeline | |
Symbol 103 Text | Uses:41 | Used by:Timeline | |
Symbol 104 Text | Uses:41 | Used by:Timeline | |
Symbol 105 Text | Uses:5 | Used by:Timeline | |
Symbol 106 Text | Uses:5 | Used by:Timeline | |
Symbol 107 Text | Uses:5 | Used by:Timeline | |
Symbol 108 Graphic | Used by:109 | ||
Symbol 109 MovieClip | Uses:1 2 108 | Used by:Timeline | |
Symbol 110 Text | Uses:5 | Used by:Timeline | |
Symbol 111 Text | Uses:5 | Used by:Timeline | |
Symbol 112 Text | Uses:5 | Used by:Timeline | |
Symbol 113 Text | Uses:5 | Used by:Timeline | |
Symbol 114 Text | Uses:5 | Used by:Timeline | |
Symbol 115 Bitmap | Used by:116 | ||
Symbol 116 Graphic | Uses:115 | Used by:Timeline | |
Symbol 117 Text | Uses:5 | Used by:Timeline | |
Symbol 118 Bitmap | Used by:119 | ||
Symbol 119 Graphic | Uses:118 | Used by:Timeline | |
Symbol 120 Text | Uses:5 | Used by:Timeline | |
Symbol 121 Text | Uses:5 | Used by:Timeline | |
Symbol 122 Text | Uses:5 | Used by:Timeline | |
Symbol 123 Bitmap | Used by:124 | ||
Symbol 124 Graphic | Uses:123 | Used by:Timeline | |
Symbol 125 Graphic | Used by:Timeline | ||
Symbol 126 Text | Uses:5 | 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:5 | Used by:Timeline | |
Symbol 132 EditableText | Uses:5 | Used by:Timeline | |
Symbol 133 EditableText | Uses:5 | Used by:Timeline | |
Symbol 134 EditableText | Uses:5 | Used by:Timeline |
Instance Names
"loader" | Frame 1 | Symbol 4 MovieClip |
Dynamic Text Variables
percentbytes | Symbol 6 EditableText | "0" |
loadedbytes | Symbol 7 EditableText | "0" |
totalbytes | Symbol 8 EditableText | "0" |
percentbytes | Symbol 132 EditableText | "0" |
loadedbytes | Symbol 133 EditableText | "0" |
totalbytes | Symbol 134 EditableText | "0" |
|