Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | _alpha on percentagebBar |
From: | FlashActionScript |
Date: | Mon, 26 Mar 2001 09:02:50 -0000 |
Flashers,
I need a small help.
I have these AS on my preloader_MC on the main
timeline
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
onClipEvent (load) {
totalBytes = _root.getBytesTotal() + " in Bytes";
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded() + " in Bytes";
//get Bytes Loaded
bytesLeft = _root.getBytesTotal() -
_root.getBytesLoaded() + " in Bytes"; // get Bytes
Left
percentage =
int(_root.getBytesLoaded()*100/_root.getBytesTotal());
// get percentage Loaded
mc_percentageBar._width = percentage; // get
percentage bar
mc_percentageBar._alpha = percentage; // alpha for
percentage bar
percentage = percentage + "%";
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
May be I am wrong somewhere.
Everything is working fine except the portion for that
_alpha on the percentageBar.
What I wanted is to have the effect of the
percentageBar filling up my box passing across its
alpha from 0 -100,
And I would be more glad if somebody help with the
_alpha crossing from 100 to 0 instead.
Regards
Brajeshwar
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]