Do you have any comment or questions about zree file?
Reply to
Please register &
login before you post!
fantero
/ flash & video
Details
Uploaded: 23 September 2009
Opens With: Flash CS4
Files Included: flash, preloader, hair, line, cute, simple
Size: 59kb
Action Script: AS3
Resolution: Resizable
Documentation: normal
Do you like this file?
HairLinePreloader is a small and cute preloader or progressbar. it is very simple and lightweight.
It can be used for displaying any prorgess like file loading, video playback, mp3 playback etc..
It can be used with any width and color of your choice. You can also set a height. But the default 1px hairline
height best suites it.
Instructions
For setting up a hairlinepreloader for your application follow these steps.
1. copy the HairLinePreloader.as class file into your project directory or elsewhere according to your project requirement.
(its an as3 class file).
Note: change the package name of the class if you are placing the file inside other folders.
2. now you can use this class as shown in the following sample code ( I've provided a sample flash file for reference)
addChild(preloader);
Note: import the class if needed.
3. now for displaying the progress you have to call 'setProgress' function from
your progress handler function . for example
var prog:Number = (evt.bytesLoaded / evt.bytesTotal)* 100;
preloader.setProgress(prog);
}
Done it!