-
hi all,
my client is really annoyed coz i'm 3 days late. I just need a last help, so please take time to read and answer me !
My website is called "site.swf" and it loads an intro.swf on level 1 at the beginning.
I'd like to make a preloader at the beginning of site.swf that preload the website AND the intro and then starts the intro, but i can't make it. I've tried to make things like "_root.getBytesTotal()" or "_level0.getBytesTotal() + _level1.getBytesTotal()" .... etc but i can't make it
How can i do that ?
Thx, hacook
-
you can always make a preload SCENE into it.....
-
Here is a preloader function:
function preloader(){
// for preloader
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percentDone = int((loaded_bytes/total_bytes)*100);
//field that show percentage
total = percentDone+"%";
//MC image progress bar
_root.bar._xScale = percentDone;
// //////////////////////////
//preload audio
//audio is the the blank clip I load my other movie into. In this case it happens to be an audio file
total_bytes_audio = _root.audio.getBytesTotal();
loaded_bytes_audio = _root.audio.getBytesLoaded();
percentDone_audio = int((loaded_bytes_audio/total_bytes_audio)*100);
//field that shows percentage
totalAudio = percentDone_audio+"%";
//progress bar
_root.audiobar._xScale = percentDone_audio;
}
I then put this on the MC that acts as my progress bar:
onClipEvent (enterFrame) {
_parent.preloader();
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|