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

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

Flash Tutor - 3.swf

This is the info page for
Flash #71321

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


Text
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 2
stop();
Frame 3
stop();
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();
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Frame 19
stop();
Frame 20
stop();
Frame 21
stop();
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Symbol 13 Button
on (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 2
gotoAndPlay (1);
Symbol 34 Button
on (release) { nextFrame(); }
Symbol 38 Button
on (release) { prevFrame(); }
Symbol 42 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 92 Button
on (release) { getURL ("http://www.newgrounds.com/portal/view/177874", "_blank"); }
Symbol 120 MovieClip Frame 4
stop();
Symbol 130 Button
on (release) { getURL ("http://www.freewebs.com/uhh_nonsense/session3.fla", "_blank"); }
Symbol 135 Button
on (release) { gotoAndPlay (2); }

Library Items

Symbol 1 FontUsed by:3
Symbol 2 FontUsed by:3
Symbol 3 TextUses:1 2Used by:Timeline
Symbol 4 GraphicUsed by:14
Symbol 5 GraphicUsed by:6  Timeline
Symbol 6 MovieClipUses:5Used by:14
Symbol 7 GraphicUsed by:14
Symbol 8 GraphicUsed by:14
Symbol 9 GraphicUsed by:13
Symbol 10 FontUsed 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 TextUses:10Used by:13
Symbol 12 TextUses:10Used by:13
Symbol 13 ButtonUses:9 11 12Used by:14
Symbol 14 MovieClipUses:4 6 7 8 13Used by:Timeline
Symbol 15 GraphicUsed by:21  Timeline
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:16 17 18 19Used by:21  Timeline
Symbol 21 MovieClipUses:15 20Used by:Timeline
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 GraphicUsed by:Timeline
Symbol 26 FontUsed 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 FontUsed by:28 48 53 55 64 67 72 75 78 81 84 89 94 97 99 102 123 127 128 129
Symbol 28 TextUses:26 27 10Used by:Timeline
Symbol 29 GraphicUsed by:Timeline
Symbol 30 GraphicUsed by:34
Symbol 31 FontUsed by:32 33 55
Symbol 32 TextUses:31Used by:34
Symbol 33 TextUses:31Used by:34
Symbol 34 ButtonUses:30 32 33Used by:Timeline
Symbol 35 GraphicUsed by:38 42 92 130
Symbol 36 TextUses:10Used by:38
Symbol 37 TextUses:10Used by:38
Symbol 38 ButtonUses:35 36 37Used by:Timeline
Symbol 39 GraphicUsed by:Timeline
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 ButtonUses:35 40 41Used by:Timeline
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:Timeline
Symbol 45 FontUsed by:46 59 107
Symbol 46 TextUses:45Used by:Timeline
Symbol 47 GraphicUsed by:Timeline
Symbol 48 TextUses:26 10 27Used by:Timeline
Symbol 49 BitmapUsed by:51 56 68
Symbol 50 BitmapUsed by:51 56 66 68 74
Symbol 51 GraphicUses:49 50Used by:Timeline
Symbol 52 GraphicUsed by:Timeline
Symbol 53 TextUses:26 27 10Used by:Timeline
Symbol 54 GraphicUsed by:Timeline
Symbol 55 TextUses:26 27 31Used by:Timeline
Symbol 56 GraphicUses:49 50Used by:Timeline
Symbol 57 FontUsed by:58 69
Symbol 58 EditableTextUses:57Used by:Timeline
Symbol 59 TextUses:45Used by:Timeline
Symbol 60 GraphicUsed by:Timeline
Symbol 61 FontUsed by:62 70
Symbol 62 TextUses:61Used by:Timeline
Symbol 63 GraphicUsed by:Timeline
Symbol 64 TextUses:10 26 27Used by:Timeline
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65 50Used by:Timeline
Symbol 67 TextUses:27 26 10Used by:Timeline
Symbol 68 GraphicUses:49 50Used by:Timeline
Symbol 69 EditableTextUses:57Used by:Timeline
Symbol 70 TextUses:61Used by:Timeline
Symbol 71 GraphicUsed by:Timeline
Symbol 72 TextUses:26 10 27Used by:Timeline
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73 50Used by:Timeline
Symbol 75 TextUses:26 27 10Used by:Timeline
Symbol 76 BitmapUsed by:77 88 93 96
Symbol 77 GraphicUses:76Used by:Timeline
Symbol 78 TextUses:26 10 27Used by:Timeline
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:Timeline
Symbol 81 TextUses:27 26 10Used by:Timeline
Symbol 82 BitmapUsed by:83
Symbol 83 GraphicUses:82Used by:Timeline
Symbol 84 TextUses:26 27 10Used by:Timeline
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:85 86Used by:Timeline
Symbol 88 GraphicUses:76Used by:Timeline
Symbol 89 TextUses:26 10 27Used by:Timeline
Symbol 90 TextUses:26 10Used by:92
Symbol 91 TextUses:26 10Used by:92
Symbol 92 ButtonUses:35 90 91Used by:Timeline
Symbol 93 GraphicUses:76Used by:Timeline
Symbol 94 TextUses:26 27 10Used by:Timeline
Symbol 95 BitmapUsed by:96 98
Symbol 96 GraphicUses:95 76Used by:Timeline
Symbol 97 TextUses:26 27 10Used by:Timeline
Symbol 98 GraphicUses:95Used by:Timeline
Symbol 99 TextUses:26 10 27Used by:Timeline
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:Timeline
Symbol 102 TextUses:26 27 10Used by:Timeline
Symbol 103 GraphicUsed by:Timeline
Symbol 104 TextUses:26Used by:Timeline
Symbol 105 FontUsed by:107
Symbol 106 FontUsed by:107
Symbol 107 TextUses:105 45 106Used by:Timeline
Symbol 108 GraphicUsed by:Timeline
Symbol 109 TextUses:26Used by:Timeline
Symbol 110 GraphicUsed by:113
Symbol 111 GraphicUsed by:113
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:110 111 112Used by:Timeline
Symbol 114 GraphicUsed by:Timeline
Symbol 115 TextUses:26Used by:Timeline
Symbol 116 GraphicUsed by:120
Symbol 117 GraphicUsed by:120
Symbol 118 GraphicUsed by:120
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:116 117 118 119Used by:121
Symbol 121 MovieClipUses:120Used by:Timeline
Symbol 122 GraphicUsed by:Timeline
Symbol 123 TextUses:26 27Used by:Timeline
Symbol 124 GraphicUsed by:Timeline
Symbol 125 TextUses:26Used by:Timeline
Symbol 126 GraphicUsed by:Timeline
Symbol 127 TextUses:26 27Used by:Timeline
Symbol 128 TextUses:10 27Used by:130
Symbol 129 TextUses:10 27Used by:130
Symbol 130 ButtonUses:35 128 129Used by:Timeline
Symbol 131 GraphicUsed by:135
Symbol 132 FontUsed by:133 134
Symbol 133 TextUses:132Used by:135
Symbol 134 TextUses:132Used by:135
Symbol 135 ButtonUses:131 133 134Used by:Timeline

Instance Names

"bar"Frame 14Symbol 87 MovieClip
"bar"Symbol 14 MovieClip Frame 1Symbol 6 MovieClip

Labels

"loaded"Symbol 14 MovieClip Frame 3




http://swfchan.com/15/71321/info.shtml
Created: 9/4 -2019 09:37:24 Last modified: 9/4 -2019 09:37:24 Server time: 08/05 -2024 09:55:36