kardis
August 15, 2004, 4:44pm
1
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);
}
system
August 15, 2004, 6:19pm
2
Is your picture or another layer covering your preloader?
system
August 15, 2004, 6:25pm
3
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? :-\
system
August 16, 2004, 4:42am
4
hmmm… tahnks i will try your scripts…
by the way my picture is set as another layer…
system
August 16, 2004, 7:02am
5
nah it didn’t work… thanks any way
still bothering by it…
anyone have other codes??