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

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

Animated Preloaders.swf

This is the info page for
Flash #37029

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


Text
Play

ANIMATED PRELOADERS
FOR FRICKEN IDIOTS

Menu

First up is the animation.
It's as easy as it sounds, just a simple
100 frame animation consisting of whatever
you want. Some quick ideas are:
Loading bar
a progressive animation
Intro type animation
A loop inside an MC

Heres a small sample animation that I
made for a preloader a while back

Next up is learning howto use the
animation in the preloader.
This is quite simple, first we're going to
start out with 3 blank keyframes. Highlight
the third frame, and goto properties. Set
the frame name as "start" we will need this
later on.

Now make sure your 100 frame animation
is inside an MC.  To do this, highlight, and cut
the frames you want as the animation, now,
Insert > New symbol > Paste the frames inside
Easy enough so far right? Alright, lets continue.

The following code is only used if you want
your movie-clip to go through the 100 frame
animation at the same rate of download
(0-100%)

<p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent (enterFrame) {</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>gotoAndPlay(_root.percentDone);</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="center"></p>

Place this code on the actions of the 100 frame
animation, this will make good use of the 100
frames

The MC should be in the first two frames, and to make this
look good, you have to make sure that they are in
the EXACT same position in both frames
if they are not, your animated preloader will be completly
messed up. An easy way to make sure this works is as follows:
1) delete frame two
2) drag frame 3, which will be in the second frame position
after deleting frame two back into the third position
3) Right click on frame two and select "Add Keyframe"

The last part of this tutorial is the actionscript.
This is extremely simple, but knowing where to put it
is crucial. In the first frame put this:

<p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>totalBytes = Math.round(getBytesTotal()/1024);</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>loadedBytes = Math.round(getBytesLoaded()/1024);</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>percentDone = Math.round((loadedBytes/totalBytes)*100);</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if (_root._framesloaded&gt;=_root._totalframes) {</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>gotoAndPlay(&quot;start&quot;);</b></font></p><p align="center"><font face="BATAVIA" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="center"></p>

Please continue for the last bit of the script

Lastly, in the second frame, theres a
simple script, just add:
gotoAndPlay (1);
After you do all this it should work, except
you wont be able to tell that it's working untill
you see it posted on the internet.

Overview
1) Create 3 keyframes
2) name the third frame "start"
3) create an MC with your animation inside
(100 frames long exactly)
4) put your mc in frame 1 and two
5) add the script

ActionScript [AS1/AS2]

Frame 1
totalBytes = Math.round(getBytesTotal() / 1024); loadedBytes = Math.round(getBytesLoaded() / 1024); percentDone = Math.round((loadedBytes / totalBytes) * 100); if (_root._framesloaded >= _root._totalframes) { gotoAndPlay ("start"); }
Instance of Symbol 18 MovieClip in Frame 1
onClipEvent (enterFrame) { gotoAndPlay(_root.percentDone); }
Frame 2
gotoAndPlay (1);
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Symbol 11 Button
on (release) { stopAllSounds(); }
Symbol 26 Button
on (release) { play(); }
Symbol 33 Button
on (release) { nextFrame(); }
Symbol 35 Button
on (release) { gotoAndStop (7); }
Symbol 37 Button
on (release) { gotoAndStop (9); }
Symbol 39 Button
on (release) { gotoAndStop (13); }
Symbol 43 Button
on (release) { gotoAndStop (4); }
Symbol 45 Button
on (release) { prevFrame(); }
Symbol 46 Button
on (release) { play(); }
Symbol 84 MovieClip Frame 100
stop();

Library Items

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

Special Tags

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

Labels

"start"Frame 3




http://swfchan.com/8/37029/info.shtml
Created: 14/5 -2019 18:13:20 Last modified: 14/5 -2019 18:13:20 Server time: 13/05 -2024 22:53:05