all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Preloader problem



Preloader problem extravaganza_
5/2/2004 9:44:52 PM
flash actionscript: I was trying to follow a tutorial for a preloader and I am stuck getting the
variable text to display. I have a preloader layer that contains a movie clip
with 3 frames.
Frame 1
_parent.stop();

Frame 2
kBytesLoaded = _parent.getBytesLoaded()/1024;
kBytesTotal = _parent.getBytesTotal()/1024;
kBytesRemaining = kBytesTotal-kBytesLoaded;
percentLoaded = 100*kBytesLoaded/kBytesTotal;
percentRemaining = 100-percentLoaded;
progress = Math.floor(percentRemaining) + "%";

Frame3
if (percentLoaded < 99) {gotoAndPlay(2);
} else {
_parent.play();
stop();
}

My files and the original tutorial are linked at
http://www.extravaganzadesign.com/test.htm

Any help is really appreciated!!!!
Re: Preloader problem Tinku31
5/3/2004 7:17:15 AM
hello,
i made this preloader in flash 5. i send you fla file, hope it will help you.
thanks
AddThis Social Bookmark Button