I have been trying to use this preloader
It is one of those ones that is in a seperate swf that forwards the user onto the main swf when it is loaded.
It kind of works but the dynamic text box displays NAN or something like that at the begining of the load which looks bad.
I have attached the FLA and here is the code on frame one
Thanks a lot for any help
m
// Hides displayed elements
this.reelmc._visible = false;
this.loadbar._visible = false;
percent_display = "";
//create a new movieclip to load
//the external movie into
this.createEmptyMovieClip("container",10);
//load the external movie into the new movieclip
container.loadMovie("leechildweb9.swf");
//check the download status of the external
//movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.container.getBytesLoaded()/this.container.getBytesTotal())*100;
i've seen that NaN thing before when the incorrect timeline was being targetted (e.g. when "this" should have been used instead of " _parent" or something similar when the movie goes "up" one level too high.)
i didn't see that when i tested your .fla which uses "this". just out of curiousity, are you using this preloader inside another .fla? (although i'm not sure if that would be the reason why you're seeing "NaN" instead of the actual % loaded)
also, does the leechildweb9.fla have a blank first frame?
Last edited by green.apple; 04-08-2006 at 07:46 AM.
Reason: edit for clarity