Atomic Progress
|
|
|
|
| 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. |
|
|
|
|
|