Feedback
Tell us:
  • Idea
  • Question
  • Bug

$ 1.00
By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON- COMMERCIAL PROJECT - details
or

Description:
Features

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)

var preloader:HairLinePreloader = new HairLinePreloader(200, 0x00FF00, 2);
                  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
private function yourProgressHandler(evt:ProgressEvent):void{
            var prog:Number = (evt.bytesLoaded / evt.bytesTotal)* 100;
            preloader.setProgress(prog);
            
      }


Done it!

0 Comments


Do you have any comment or questions about zree file?


Please register & before you post!
Views 1716
Purchases 3
Buyer Rating
1 2 3 4 5
Leave a Comments 0

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?