Wise men speak because they have something to say; Fools because they have to say something.
- Plato (427-347 B.C.)
News
Site News
Latest Comments
Affiliates
Proxies
Contribute!
Chat
Tutorials
Newest Articles
Most Popular
Highest Rated
Latest Comments
Code Samples
Newest Code
Most Popular
Highest Rated
Latest Comments
Blogs
Admins Blog
Newest Blogs
Most Popular
Highest Rated
Latest Comments
Forums
Latest Posts
Latest Topics
Memberlist
[login]
|
[Register]
Pre Loader
by: bs0d
Description:
Ok, this code sample is in ActionScript (of course) And it is the code behind the status of the loading process of your movie. What I do is put this in frame 1 of your movie, and when its complete, have it advance to frame 2 to begin playing, ect. You should have text saying like, "Loading..." or something. Then, create a movie clip with an instance name of "bar". And have the bar within a box (bar not full length of box). And finally, here's the good stuff:
Code:
//preloader loaded = getBytesLoaded(); tot = getBytesTotal(); if (loaded == tot) gotoAndPlay("2"); else { with (Bar) { _width = 96*loaded/tot; _x = 132 + _width / 2; } }
No Comments for this page.
You Must be
signed in
or a
member
to comment.
Code Stats
6,740
Views
0
Total Comments
0
Rating of 5 (
Votes)
Code Options
·
Login to Rate This Code
·
Login to Post a Comment
·
Read more by this author
Related
·
ActionScript objects move fast
Your Code Here
"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy
|
Internet Rank