I’m loading a JPEG file with the loadMovie() method, is there any way to preload this, or to view the loading progress?
[SIZE=1](note: I quickly browsed through some of the preloading topics here, but none answered this issue.)[/SIZE]
I’m loading a JPEG file with the loadMovie() method, is there any way to preload this, or to view the loading progress?
[SIZE=1](note: I quickly browsed through some of the preloading topics here, but none answered this issue.)[/SIZE]
Hi,
this.containerMc.loadMovie("yourImg.jpg");
this.onEnterFrame = function(){
this.preloadJpg();
}
this.preloadJpg = function(){
if (containerMc.getBytesLoaded> 10 and containerMc.getBytesLoaded == containerMc.getBytesTotal){
this.onEnterFrame = undefined;
this.doWhatEver();
} else {
this.displayBar();
}
}
Hope it helps
cheers
SHO
Thanks!!
U r welcome:)
:: Copyright KIRUPA 2024 //--