A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11337 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 5828 Flash Sites | 0 New Flash Links
What's New | Top 100 Flash Site

Featured Site

» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.


Random Links | Add your own Flash Related Links
Flash Tutorials 1280 Tutorials 7 New Tutorials Added!
What's New | Top100

» Make a Flash Slide Show Screen Saver
» Simple flash making tutorial for thanksgiving
» Create flash banner for website
» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» Unknown Tag: Title10
Random Tutorial | Add Site

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Flash_Kit

Categories Easy Preloader Bar!
Author: Anthony_kid | Website: http://sumfusion.akassp.com/ |

 
Page 2
«prev 1 2

Now, let's break that actionscript!

The First part:
stop();

That just stops on that Frame.

The part after that:


loadpercent = _root.getBytesLoaded() / _root.getBytesTotal * 100;

This part assigns a variable, with the name loadpercent. It gets the Bytes of the File that have already been loaded, divides it by the Total Bytes, and then multiplys it by 100, so that the division isn't a decmial.

The if statement..:


if(loadpercent != 100){
setProperty(bar, _xscale, loadpercent);
}else{
gotoAndStop(3);
}

First, the if statement tests to see that the variable loadpercent is at 100, which would mean it is fully loaded. It says if the variable doesn't equal 100, then use the setProperty(); function:

These are the parameters of the setProperty(); funtion: setProperty(target, property, value);

First, target. This tells the function what clip to target, and assign the follow property to.

Next, property. This is the property of the specific clip to set. In this case, _xscale.

And last, value. This is the value of the property being assigned. In this case, it was loadpercent.

Now, if the if statement returns true, then the setProperty(); function is used to show how much of the movie is loaded through a bar movieclip. If the statement returns false, and the movie is:

gotoAndStop(3);

This about sums it up! Basically, using actionscript, we test to see if the movie is loaded, and change the size of the bar if it isn't, and go to the nextframe if it is! I hope this tutorial helped you a great deal! Hopefully, in the future, I will write more tutorials! But I haven't much time to do so, what with sports and school...

P.S.:
I'm only 13 years old!! Lol..anyway, if you have any questions, feel free to email me at antsam@akassp.com, or, reach me on AIM (Aol Instant Messenger) at: MasnaX ! I'll be glad to help in anyway that I can! Thank you for reading!! Hope I've helped you!

«prev 1 2

» Level Intermediate

Added: : 2004-04-30
Rating: 4.85 Votes: 149
Hits: 2379
» Author
AIM: MasnaX EMAIL: antsam@akassp.com
» Download
Download the files used in this tutorial.
Download (7341 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs