Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | getBytesloaded of a level???? |
| From: | Patrick Mullady |
| Date: | Mon, 05 Mar 2001 13:12:49 -0000 |
I'm working on a preloader. I have a swf thats about 450k. I can't do a
normal preload on it because I'm using attach movie with about 120 pics.
I thought I could load the swf into another level and have the preloader sit
in level 0
Then use the getBytesloaded function to create my preload.
I'm just not getting it.......
This is what I'm doing.
action on frame1 of level 0
setProperty ("_level1", _visible, false);
loadMovieNum ("movie.swf", 1);
preloader.total = _level1.getBytesTotal()+" bytes";
stop ();
then I have a movie clip called preloader with the following script on it
that should update text fields
onClipEvent (enterFrame) {
download = _level1.getBytesLoaded();
bytesleft = _level1.getBytesTotal()-_level1.getBytesLoaded();
percent = __level1.getBytesLoaded()/_level1.getBytesTotal()*100;
if (percent == "100") {
nextFrame ();
setProperty (_level1, _visible, true);
}
}
I'm stuck! The movie loads but the percent never moves past 0
Can anyone help.......or maybe a different idea........?
Thanx guys.
Patrick
ReTrOpUnK
Digital Artist
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

