SCHIMKE
03-25-2003, 08:08 PM
hi all.
I'm sure you all know the annoyance of loading a movie via loadMovie, and sometimes waiting a couple of seconds for ANYTHING to show up.? Apparently it's trying to stream it, but in the meantime the user thinks it's not working..
I read a tutorial a while ago about putting your preloader on a different _level rather than at the beginning of the movie you are trying to load (since by the time it shows up, the movie is already loaded:mad: ).
So, I am attempting to place a preloader on _level5, problem is-- i'm loading the Movie into a MC on my _root timeline called "mcholder". Do I point the "total_bytes = getBytesTotal();" at _root.mcholder??
I tried that and can't get it to work, this is what i have so far....
total_bytes = _root.mcholder.getBytesTotal();
loaded_bytes = _root.mcholder.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("_root.mcholder", 500) {
_root.mcholder.gotoAndPlay(2);
}
Maybe there is an easier way to do this...I am trying to do something like the pre-loaders here:
http://www.knoll.com/a3i/launch_flash.html
where the pre-loader runs everytime a main button is selected..
any ideas would be appreciated.
Cheers.
I'm sure you all know the annoyance of loading a movie via loadMovie, and sometimes waiting a couple of seconds for ANYTHING to show up.? Apparently it's trying to stream it, but in the meantime the user thinks it's not working..
I read a tutorial a while ago about putting your preloader on a different _level rather than at the beginning of the movie you are trying to load (since by the time it shows up, the movie is already loaded:mad: ).
So, I am attempting to place a preloader on _level5, problem is-- i'm loading the Movie into a MC on my _root timeline called "mcholder". Do I point the "total_bytes = getBytesTotal();" at _root.mcholder??
I tried that and can't get it to work, this is what i have so far....
total_bytes = _root.mcholder.getBytesTotal();
loaded_bytes = _root.mcholder.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("_root.mcholder", 500) {
_root.mcholder.gotoAndPlay(2);
}
Maybe there is an easier way to do this...I am trying to do something like the pre-loaders here:
http://www.knoll.com/a3i/launch_flash.html
where the pre-loader runs everytime a main button is selected..
any ideas would be appreciated.
Cheers.