Guys need help with preloader urgently

Hi guys,

I in need of help here, I have a created a MC in my main frame, so i wanted to load an external swf into the MC. The external swf contain a picture and a preloader… However, the picture did showed up but not my preloader… Tested it on the net before. my picture is around 200kb so that means the dwonloading speed cannot be that fast, until it skip the preloader…

heres the code(preloader in external swf…):

bytes_loaded = Math.round(getBytesLoaded());
bytes_total = Math.round(getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadBar._width = getPercent100;
loadText = Math.round(getPercent
100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay(3);
}

Is your picture or another layer covering your preloader?

Yours:

bytes_loaded = Math.round(getBytesLoaded());
bytes_total = Math.round(getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadBar._width = getPercent100;
loadText = Math.round(getPercent
100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay(3);
}

Mine:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay(“start”);
}

Mine works fine, maybe if yours was set up like mine it would work? :-\

hmmm… tahnks i will try your scripts…

by the way my picture is set as another layer…

nah it didn’t work… thanks any way

still bothering by it…

anyone have other codes??