STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229459 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2574 · P5148 |
This is the info page for Flash #71321 |
Session 3: Preloaders |
Begin |
Begin |
Welcome to Macromedia Flash Tutor! I'm your personal tutor, the Professor! |
NEXT |
NEXT |
BACK |
BACK |
awesome job man, now you should make a tutor on Pre-loaders im an idiot so and i want to learn how to make a pre-loader it would help me out so much man, anyway good work |
Thanks Reaperofgifs for your great comments. Today's session will cover preloaders, as requested. |
Start by selecting the first frame of your Movie. |
Click on the Actions tab found in the bottom. Make sure it says Actions - Frame. |
<p align="left"><font face="Times New Roman" size="13" color="#000000">loadedbytes = <font color="#0000cc">getBytesLoaded</font>();</font></p><p align="left"><font face="Times New Roman" size="13" color="#000000">totalbytes = <font color="#0000cc">getBytesTotal</font>();</font></p><p align="left"><font face="Times New Roman" size="13" color="#0000cc">if<font color="#000000"> (loadedbytes == totalbytes) {</font></font></p><p align="left"><font face="Times New Roman" size="13" color="#0000cc">nextScene<font color="#000000">();</font></font></p><p align="left"><font face="Times New Roman" size="13" color="#000000">}</font></p><p align="left"></p><p align="left"><font face="Times New Roman" size="13" color="#000000">frame = <font color="#0000cc">int</font>(loadedbytes/(totalbytes/100));</font></p><p align="left"><font face="Times New Roman" size="13" color="#0000cc">tellTarget<font color="#000000"> (</font>_root<font color="#000000">.bar) {</font></font></p><p align="left"><font face="Times New Roman" size="13" color="#0000cc">gotoAndStop<font color="#000000">(</font>_root<font color="#000000">.frame);</font></font></p><p align="left"><font face="Times New Roman" size="13" color="#000000">}</font></p> |
Highlight, copy, and paste. |
This will create variables that will store the calculated amount of data loaded. |
Paste this in the Actions window. |
Right-click on the second frame and select Insert Blank Keyframe. |
<p align="left"><font face="Times New Roman" size="13" color="#0000cc">gotoAndPlay<font color="#000000">(1);</font></font></p> |
This will play the first frame of the movie, creating a loop. |
While the second frame is selected, paste this in the Actions tab. |
Create a new Layer by right- clicking on Layer 1, and selecting Insert Layer. |
Select the first frame of Layer 2 and draw a rectangle. |
Highlight the rectangle and select Covert to Symbol... |
Call it loader, select Movie Clip for the behavior, and click OK. |
Within this Movie Clip, create a 100 frame animation of a sliding bar. |
(see Motion Tween for help) |
(see Motion Tween for help) |
Go back to the main Timeline and click on the loader bar Movie Clip. |
While the Movie Clip is selected, click on the Properties tab which is below the Actions tab. |
Enter bar as the Instance Name, which can be found under the Behavior type. |
Go back to the main Timeline and right-click on the second frame of Layer 2. Select Insert Frame. |
And there you have it, a simple preloader! |
Note: Make sure you start your movie in the next scene. |
Try to be creative... |
Make a funny shaped loader bar... |
Have hearts magically appear! |
Experiment. |
Thank you for viewing Macromedia Flash Tutor! I hope you learned something! |
Too Stupid To Understand? Download this: session3.fla |
Too Stupid To Understand? Download this: session3.fla |
Replay |
Replay |
ActionScript [AS1/AS2]
Frame 2stop();Frame 3stop();Frame 4stop();Frame 5stop();Frame 6stop();Frame 7stop();Frame 8stop();Frame 9stop();Frame 10stop();Frame 11stop();Frame 12stop();Frame 13stop();Frame 14stop();Frame 15stop();Frame 16stop();Frame 17stop();Frame 18stop();Frame 19stop();Frame 20stop();Frame 21stop();Frame 22stop();Frame 23stop();Frame 24stop();Symbol 13 Buttonon (release) { _root.play(); }Symbol 14 MovieClip Frame 1_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop (3); }Symbol 14 MovieClip Frame 2gotoAndPlay (1);Symbol 34 Buttonon (release) { nextFrame(); }Symbol 38 Buttonon (release) { prevFrame(); }Symbol 42 Buttonon (release) { getURL ("http://www.newgrounds.com", "_blank"); }Symbol 92 Buttonon (release) { getURL ("http://www.newgrounds.com/portal/view/177874", "_blank"); }Symbol 120 MovieClip Frame 4stop();Symbol 130 Buttonon (release) { getURL ("http://www.freewebs.com/uhh_nonsense/session3.fla", "_blank"); }Symbol 135 Buttonon (release) { gotoAndPlay (2); }
Library Items
Symbol 1 Font | Used by:3 | ||
Symbol 2 Font | Used by:3 | ||
Symbol 3 Text | Uses:1 2 | Used by:Timeline | |
Symbol 4 Graphic | Used by:14 | ||
Symbol 5 Graphic | Used by:6 Timeline | ||
Symbol 6 MovieClip | Uses:5 | Used by:14 | |
Symbol 7 Graphic | Used by:14 | ||
Symbol 8 Graphic | Used by:14 | ||
Symbol 9 Graphic | Used by:13 | ||
Symbol 10 Font | Used by:11 12 28 36 37 48 53 64 67 72 75 78 81 84 89 90 91 94 97 99 102 128 129 | ||
Symbol 11 Text | Uses:10 | Used by:13 | |
Symbol 12 Text | Uses:10 | Used by:13 | |
Symbol 13 Button | Uses:9 11 12 | Used by:14 | |
Symbol 14 MovieClip | Uses:4 6 7 8 13 | Used by:Timeline | |
Symbol 15 Graphic | Used by:21 Timeline | ||
Symbol 16 Graphic | Used by:20 | ||
Symbol 17 Graphic | Used by:20 | ||
Symbol 18 Graphic | Used by:20 | ||
Symbol 19 Graphic | Used by:20 | ||
Symbol 20 MovieClip | Uses:16 17 18 19 | Used by:21 Timeline | |
Symbol 21 MovieClip | Uses:15 20 | Used by:Timeline | |
Symbol 22 Bitmap | Used by:23 | ||
Symbol 23 Graphic | Uses:22 | Used by:Timeline | |
Symbol 24 Graphic | Used by:Timeline | ||
Symbol 25 Graphic | Used by:Timeline | ||
Symbol 26 Font | Used by:28 48 53 55 64 67 72 75 78 81 84 89 90 91 94 97 99 102 104 109 115 123 125 127 | ||
Symbol 27 Font | Used by:28 48 53 55 64 67 72 75 78 81 84 89 94 97 99 102 123 127 128 129 | ||
Symbol 28 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 29 Graphic | Used by:Timeline | ||
Symbol 30 Graphic | Used by:34 | ||
Symbol 31 Font | Used by:32 33 55 | ||
Symbol 32 Text | Uses:31 | Used by:34 | |
Symbol 33 Text | Uses:31 | Used by:34 | |
Symbol 34 Button | Uses:30 32 33 | Used by:Timeline | |
Symbol 35 Graphic | Used by:38 42 92 130 | ||
Symbol 36 Text | Uses:10 | Used by:38 | |
Symbol 37 Text | Uses:10 | Used by:38 | |
Symbol 38 Button | Uses:35 36 37 | Used by:Timeline | |
Symbol 39 Graphic | Used by:Timeline | ||
Symbol 40 Graphic | Used by:42 | ||
Symbol 41 Graphic | Used by:42 | ||
Symbol 42 Button | Uses:35 40 41 | Used by:Timeline | |
Symbol 43 Bitmap | Used by:44 | ||
Symbol 44 Graphic | Uses:43 | Used by:Timeline | |
Symbol 45 Font | Used by:46 59 107 | ||
Symbol 46 Text | Uses:45 | Used by:Timeline | |
Symbol 47 Graphic | Used by:Timeline | ||
Symbol 48 Text | Uses:26 10 27 | Used by:Timeline | |
Symbol 49 Bitmap | Used by:51 56 68 | ||
Symbol 50 Bitmap | Used by:51 56 66 68 74 | ||
Symbol 51 Graphic | Uses:49 50 | Used by:Timeline | |
Symbol 52 Graphic | Used by:Timeline | ||
Symbol 53 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 54 Graphic | Used by:Timeline | ||
Symbol 55 Text | Uses:26 27 31 | Used by:Timeline | |
Symbol 56 Graphic | Uses:49 50 | Used by:Timeline | |
Symbol 57 Font | Used by:58 69 | ||
Symbol 58 EditableText | Uses:57 | Used by:Timeline | |
Symbol 59 Text | Uses:45 | Used by:Timeline | |
Symbol 60 Graphic | Used by:Timeline | ||
Symbol 61 Font | Used by:62 70 | ||
Symbol 62 Text | Uses:61 | Used by:Timeline | |
Symbol 63 Graphic | Used by:Timeline | ||
Symbol 64 Text | Uses:10 26 27 | Used by:Timeline | |
Symbol 65 Bitmap | Used by:66 | ||
Symbol 66 Graphic | Uses:65 50 | Used by:Timeline | |
Symbol 67 Text | Uses:27 26 10 | Used by:Timeline | |
Symbol 68 Graphic | Uses:49 50 | Used by:Timeline | |
Symbol 69 EditableText | Uses:57 | Used by:Timeline | |
Symbol 70 Text | Uses:61 | Used by:Timeline | |
Symbol 71 Graphic | Used by:Timeline | ||
Symbol 72 Text | Uses:26 10 27 | Used by:Timeline | |
Symbol 73 Bitmap | Used by:74 | ||
Symbol 74 Graphic | Uses:73 50 | Used by:Timeline | |
Symbol 75 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 76 Bitmap | Used by:77 88 93 96 | ||
Symbol 77 Graphic | Uses:76 | Used by:Timeline | |
Symbol 78 Text | Uses:26 10 27 | Used by:Timeline | |
Symbol 79 Bitmap | Used by:80 | ||
Symbol 80 Graphic | Uses:79 | Used by:Timeline | |
Symbol 81 Text | Uses:27 26 10 | Used by:Timeline | |
Symbol 82 Bitmap | Used by:83 | ||
Symbol 83 Graphic | Uses:82 | Used by:Timeline | |
Symbol 84 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 85 Graphic | Used by:87 | ||
Symbol 86 Graphic | Used by:87 | ||
Symbol 87 MovieClip | Uses:85 86 | Used by:Timeline | |
Symbol 88 Graphic | Uses:76 | Used by:Timeline | |
Symbol 89 Text | Uses:26 10 27 | Used by:Timeline | |
Symbol 90 Text | Uses:26 10 | Used by:92 | |
Symbol 91 Text | Uses:26 10 | Used by:92 | |
Symbol 92 Button | Uses:35 90 91 | Used by:Timeline | |
Symbol 93 Graphic | Uses:76 | Used by:Timeline | |
Symbol 94 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 95 Bitmap | Used by:96 98 | ||
Symbol 96 Graphic | Uses:95 76 | Used by:Timeline | |
Symbol 97 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 98 Graphic | Uses:95 | Used by:Timeline | |
Symbol 99 Text | Uses:26 10 27 | Used by:Timeline | |
Symbol 100 Bitmap | Used by:101 | ||
Symbol 101 Graphic | Uses:100 | Used by:Timeline | |
Symbol 102 Text | Uses:26 27 10 | Used by:Timeline | |
Symbol 103 Graphic | Used by:Timeline | ||
Symbol 104 Text | Uses:26 | Used by:Timeline | |
Symbol 105 Font | Used by:107 | ||
Symbol 106 Font | Used by:107 | ||
Symbol 107 Text | Uses:105 45 106 | Used by:Timeline | |
Symbol 108 Graphic | Used by:Timeline | ||
Symbol 109 Text | Uses:26 | Used by:Timeline | |
Symbol 110 Graphic | Used by:113 | ||
Symbol 111 Graphic | Used by:113 | ||
Symbol 112 Graphic | Used by:113 | ||
Symbol 113 MovieClip | Uses:110 111 112 | Used by:Timeline | |
Symbol 114 Graphic | Used by:Timeline | ||
Symbol 115 Text | Uses:26 | Used by:Timeline | |
Symbol 116 Graphic | Used by:120 | ||
Symbol 117 Graphic | Used by:120 | ||
Symbol 118 Graphic | Used by:120 | ||
Symbol 119 Graphic | Used by:120 | ||
Symbol 120 MovieClip | Uses:116 117 118 119 | Used by:121 | |
Symbol 121 MovieClip | Uses:120 | Used by:Timeline | |
Symbol 122 Graphic | Used by:Timeline | ||
Symbol 123 Text | Uses:26 27 | Used by:Timeline | |
Symbol 124 Graphic | Used by:Timeline | ||
Symbol 125 Text | Uses:26 | Used by:Timeline | |
Symbol 126 Graphic | Used by:Timeline | ||
Symbol 127 Text | Uses:26 27 | Used by:Timeline | |
Symbol 128 Text | Uses:10 27 | Used by:130 | |
Symbol 129 Text | Uses:10 27 | Used by:130 | |
Symbol 130 Button | Uses:35 128 129 | Used by:Timeline | |
Symbol 131 Graphic | Used by:135 | ||
Symbol 132 Font | Used by:133 134 | ||
Symbol 133 Text | Uses:132 | Used by:135 | |
Symbol 134 Text | Uses:132 | Used by:135 | |
Symbol 135 Button | Uses:131 133 134 | Used by:Timeline |
Instance Names
"bar" | Frame 14 | Symbol 87 MovieClip |
"bar" | Symbol 14 MovieClip Frame 1 | Symbol 6 MovieClip |
Labels
"loaded" | Symbol 14 MovieClip Frame 3 |
|