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

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

Make A Preloader.swf

This is the info page for
Flash #75933

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


Text
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 1
loadedbytes = getBytesLoaded(); totalbytes = getBytesTotal(); percentbytes = int(loadedbytes / (totalbytes / 100)); tellTarget (_root.loader) { gotoAndStop(_root.percentbytes); };
Frame 2
if (loadedbytes == totalbytes) { gotoAndPlay (3); } else { gotoAndPlay (1); }
Frame 3
play();
Frame 31
gotoAndPlay(nextScene);
Frame 47
stop(); Mouse.show();
Frame 48
play();
Frame 69
play();
Frame 117
stop();
Frame 118
stop();
Frame 119
stop();
Frame 120
play();
Frame 144
stop();
Frame 145
stop();
Frame 146
stop();
Frame 147
stop();
Frame 148
stop(); Mouse.show();
Frame 149
stop();
Frame 150
stop();
Frame 151
stop();
Frame 152
stop();
Frame 153
stop();
Frame 154
stop();
Frame 155
play(); Mouse.show();
Frame 179
stop();
Frame 180
stop();
Frame 181
stop();
Frame 182
stop();
Symbol 4 MovieClip Frame 100
stop();
Symbol 14 MovieClip Frame 30
stop();
Symbol 18 Button
on (release) { getURL ("http://www.rejectpro.cjb.net", "_blank"); }
Symbol 20 MovieClip Frame 30
stop();
Symbol 31 Button
on (release) { gotoAndStop (48); }
Symbol 46 Button
on (release) { nextFrame(); }
Symbol 55 Button
on (release) { prevFrame(); }
Symbol 66 Button
on (release) { nextFrame(); }
Symbol 130 Button
on (release) { gotoAndStop (47); }

Library Items

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

Instance Names

"loader"Frame 1Symbol 4 MovieClip

Dynamic Text Variables

percentbytesSymbol 6 EditableText"0"
loadedbytesSymbol 7 EditableText"0"
totalbytesSymbol 8 EditableText"0"
percentbytesSymbol 132 EditableText"0"
loadedbytesSymbol 133 EditableText"0"
totalbytesSymbol 134 EditableText"0"




http://swfchan.com/16/75933/info.shtml
Created: 5/4 -2019 13:59:32 Last modified: 5/4 -2019 13:59:32 Server time: 14/05 -2024 19:30:04