STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228091
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/71480548?noj=FRM71480548-4DC" width="1" height="1"></div>

UG to Preloaders !.swf

This is the info page for
Flash #68055

(Click the ID number above for more basic data on this flash file.)


Text
Loading...

Next

Next

Hi there ! This is a TUTORIAL, not a GAME ! So don't give
me crappy reviews like "stupidest game ever" and "wtf is
this game about?". I am here to teach you how to make a
nice looking preloader in two ways !

ULTIMATE GUIDE TO

Coocooletmoi's

Cool Preloader

Start

Start

Normal Preloader

PreLoaders !

Back

Back

First, open Flash. (for info I'm using Flash 8)
Draw your preloader. It should look like mine.
Convert it to a movie clip.

ULTIMATE GUIDE TO LOADERS

Coocooletmoi

This is the layer where we put the "Loading" text.

This is the layer where we put the load-bar fill

This is the layer where we put the load-bar's border

This is the layer where we put all the actions

After that, double-click your movieclip. Create 3 more
layers. There should be 4 layers now. Name them like below
(and in the same order, too) :
Done that ? Great !

<p align="left"><font face="Verdana" size="17" color="#000000" letterSpacing="0.000000" kerning="1">stop();</font></p>

Each layer should only have each a keyframe.
Actions : Click it, and put the             action in it.
LoadBarBorder : Double-click the border of your load bar,
convert it to a graphic (F8), cut it, and paste it in place in
this layer (Control+Shift+V).
LoadBar : Now, click the fill color of your loadbar, convert it
to movieclip and paste it in place on this layer
(Control+Shift+V)
Static Text : In here, just add your text - Loading will do
the trick. Be sure it is in this
layer. (You can also add your
custom text here!)

Come back to the main movie and place your loading bar.
Then, add the code on the next page.

<p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1">onClipEvent (enterFrame) {</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loading = _parent.getBytesLoaded();</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total = _parent.getBytesTotal();</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1">if (percent == undefined) percent = 0;</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percent -= (percent-((loading/total)*100))*.25;</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;per = int(percent);</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentage = per+&quot;%&quot;;</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loadBar._width = per;</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (percent&gt;99) {</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_parent.gotoAndStop(2);</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</font></p><p align="left"><font face="Verdana" size="15" color="#000000" letterSpacing="0.000000" kerning="1">}</font></p>

loadBar._width = per;

<p align="left"><font face="Verdana" size="12" color="#000000" letterSpacing="0.000000" kerning="1">*2.58</font></p>

<p align="left"><font face="Verdana" size="12" color="#000000" letterSpacing="0.000000" kerning="1">*1.598</font></p>

Check your loadbar's lenght. If it is 159.8 pix
then add                before the semi-column.
If it's 258 then add          .

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) percent = 0;
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
if (percent>99) {
_parent.gotoAndStop(2);
}
}

Congratulations !

Done that ? Great ! In fact....
You finished the tutorial ! An example of how it should look
like :

Loading...

First, open Flash. (for info I'm using Flash 8)
Draw your preloader. It should look alike mine. Also, be sure
it has ten balls/shapes.
Convert it to a movie clip.

After that, double-click your movieclip. Create 10 more key-
frames. It should have 11 key-frames in total.
On the first keyframe, in the middle, write 0%.
On the second, 10%. Third, 20% and so on. Then, on the
second keyframe, color one shape, on the second, another,
and so on. Come back to the main movie and add the code
given :

<p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">onClipEvent (enterFrame) {</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loading = _parent.getBytesLoaded();</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;total = _parent.getBytesTotal();</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent == undefined) percent = 0;</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">percent -= (percent-((loading/total)*100))*.25;</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 0) this.gotoAndStop(1)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 10) this.gotoAndStop(2)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 20) this.gotoAndStop(3)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 30) this.gotoAndStop(4)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 40) this.gotoAndStop(5)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 50) this.gotoAndStop(6)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 60) this.gotoAndStop(7)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 70) this.gotoAndStop(8)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 80) this.gotoAndStop(9)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 90) this.gotoAndStop(10)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 93.5) this.gotoAndStop(11)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">if (percent &gt;= 99) _parent.gotoAndStop(2)</font></p><p align="left"><font face="Verdana" size="9" color="#000000" letterSpacing="0.000000" kerning="1">}</font></p>

0%

10%

20%

30%

40%

50%

60%

70%

80%

90%

100%

ActionScript [AS1/AS2]

Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (enterFrame) { this.startDrag(Mouse); Mouse.hide(); loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); if (percent == undefined) { percent = 0; } percent = percent - ((percent - ((loading / total) * 100)) * 0.25); per = int(percent); percentage = per + "%"; loadBar._width = per * 1.8; if (percent > 99) { _parent.gotoAndStop(2); } }
Frame 2
stop();
Instance of Symbol 9 MovieClip in Frame 2
onClipEvent (enterFrame) { Mouse.hide(); this.startDrag(Mouse); }
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Instance of Symbol 61 MovieClip in Frame 10
onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); if (percent == undefined) { percent = 0; } percent = percent - ((percent - ((loading / total) * 100)) * 0.25); per = int(percent); percentage = per + "%"; loadBar._width = per * 1.8; if (percent > 99) { _parent.gotoAndStop(10); } }
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 16 Button
on (release) { nextFrame(); }
Symbol 25 Button
on (release) { gotoAndStop (11); }
Symbol 27 Button
on (release) { gotoAndStop (4); }
Symbol 32 Button
on (release) { prevFrame(); }
Symbol 56 Button
on (release) { gotoAndStop (3); }
Symbol 61 MovieClip Frame 1
stop();
Symbol 62 Button
on (release) { gotoAndStop (3); }

Library Items

Symbol 1 GraphicUsed by:6
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:6 61
Symbol 4 FontUsed by:5 47 60
Symbol 5 TextUses:4Used by:6
Symbol 6 MovieClipUses:1 3 5Used by:Timeline
Symbol 7 GraphicUsed by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 GraphicUsed by:16 25 27 32 56 62
Symbol 11 FontUsed by:12 14 19 20 22 23 24 26 29 30 31 34 35
Symbol 12 TextUses:11Used by:16 56
Symbol 13 GraphicUsed by:16 25 27 32 56 62
Symbol 14 TextUses:11Used by:16 56
Symbol 15 GraphicUsed by:16 25 27 32 56 62
Symbol 16 ButtonUses:10 12 13 14 15Used by:Timeline
Symbol 17 FontUsed by:18 33 37 38 39 40 42 45 47 48 49 50 51 52 53 55 57 58 63 66 67 68 69 71 73 75 77 79 81 83 85 87
Symbol 18 TextUses:17Used by:Timeline
Symbol 19 TextUses:11Used by:Timeline
Symbol 20 TextUses:11Used by:Timeline
Symbol 21 SoundUsed by:Timeline
Symbol 22 TextUses:11Used by:Timeline
Symbol 23 TextUses:11Used by:25 27
Symbol 24 TextUses:11Used by:25 27
Symbol 25 ButtonUses:10 23 13 24 15Used by:Timeline
Symbol 26 TextUses:11Used by:Timeline
Symbol 27 ButtonUses:10 23 13 24 15Used by:Timeline
Symbol 28 FontUsed by:29
Symbol 29 TextUses:11 28Used by:Timeline
Symbol 30 TextUses:11Used by:32 62
Symbol 31 TextUses:11Used by:32 62
Symbol 32 ButtonUses:10 30 13 31 15Used by:Timeline
Symbol 33 TextUses:17Used by:Timeline
Symbol 34 TextUses:11Used by:Timeline
Symbol 35 TextUses:11Used by:Timeline
Symbol 36 GraphicUsed by:Timeline
Symbol 37 TextUses:17Used by:Timeline
Symbol 38 TextUses:17Used by:Timeline
Symbol 39 TextUses:17Used by:Timeline
Symbol 40 TextUses:17Used by:Timeline
Symbol 41 GraphicUsed by:Timeline
Symbol 42 TextUses:17Used by:Timeline
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:Timeline
Symbol 45 EditableTextUses:17Used by:Timeline
Symbol 46 FontUsed by:47
Symbol 47 TextUses:17 46 4Used by:Timeline
Symbol 48 TextUses:17Used by:Timeline
Symbol 49 EditableTextUses:17Used by:Timeline
Symbol 50 TextUses:17Used by:Timeline
Symbol 51 EditableTextUses:17Used by:Timeline
Symbol 52 EditableTextUses:17Used by:Timeline
Symbol 53 TextUses:17Used by:Timeline
Symbol 54 GraphicUsed by:Timeline
Symbol 55 TextUses:17Used by:Timeline
Symbol 56 ButtonUses:10 12 13 14 15Used by:Timeline
Symbol 57 TextUses:17Used by:Timeline
Symbol 58 TextUses:17Used by:Timeline
Symbol 59 GraphicUsed by:61
Symbol 60 TextUses:4Used by:61
Symbol 61 MovieClipUses:59 3 60Used by:Timeline
Symbol 62 ButtonUses:10 30 13 31 15Used by:Timeline
Symbol 63 TextUses:17Used by:Timeline
Symbol 64 GraphicUsed by:65 89
Symbol 65 MovieClipUses:64Used by:Timeline
Symbol 66 TextUses:17Used by:Timeline
Symbol 67 EditableTextUses:17Used by:Timeline
Symbol 68 TextUses:17Used by:89
Symbol 69 TextUses:17Used by:89
Symbol 70 GraphicUsed by:89
Symbol 71 TextUses:17Used by:89
Symbol 72 GraphicUsed by:89
Symbol 73 TextUses:17Used by:89
Symbol 74 GraphicUsed by:89
Symbol 75 TextUses:17Used by:89
Symbol 76 GraphicUsed by:89
Symbol 77 TextUses:17Used by:89
Symbol 78 GraphicUsed by:89
Symbol 79 TextUses:17Used by:89
Symbol 80 GraphicUsed by:89
Symbol 81 TextUses:17Used by:89
Symbol 82 GraphicUsed by:89
Symbol 83 TextUses:17Used by:89
Symbol 84 GraphicUsed by:89
Symbol 85 TextUses:17Used by:89
Symbol 86 GraphicUsed by:89
Symbol 87 TextUses:17Used by:89
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:68 64 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88Used by:Timeline

Instance Names

"loadBar"Symbol 6 MovieClip Frame 1Symbol 3 MovieClip
"loadBar"Symbol 61 MovieClip Frame 1Symbol 3 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.




http://swfchan.com/14/68055/info.shtml
Created: 11/4 -2019 05:43:44 Last modified: 11/4 -2019 05:43:44 Server time: 04/05 -2024 11:57:31