Flash components, flash files, the best flash components source, download flash components and flash extensions, sell flash components, buy flash
 
Search

home » flash components » user interface » atomic progress »

Atomic Progress

Open in larger window:
600x360 or 800x480
FlashStore rating:
User rating: Not rated yet.
Date: 07-02-07
Submited by: fbogdan
Skill: beginner
Price: $ 15.99
 
UI Access
Standard Components
Support address
Download documentation
Atomic Progress documentation (89.9 KB)
Free Trial Version
Click here to download the trial/demo version (4.77 KB)
Code samples
Example usage – preloading a flash file


On the first frame of your flash movie drag the component on the stage, and give it an instance name, let’s say “progressMc”. This first frame should contain only the component, or at least a minimum quantity of bytes. Create a new layer, and on the first frame put the following code:

stop();
totalBytes = getBytesTotal();
this.onEnterFrame = function() {
loadedBytes = getBytesLoaded();
progressMc.value = loadedBytes*100/totalBytes;
if (loadedBytes == totalBytes) {
this.onEnterFrame = null;
nextFrame();
}
};

This small piece of code has preloaded your whole flash, and the percentage is nicely displayed by the Atomic Progress Component. On the next frames there should be the actual content of your flash.


Buyer reviews

No reviews.


User Comments

No comments.
login to post your comment  

Advertising

Credentials

FlashStore is now Adobe Solution Partner for Flash Components

As seen advertised at theFWA.com