browser compatibility issue
Hi
I've been using the code below to load pictures, then play the movie once the image is fully uploaded. It works fine in IE, but not in Firefox? Firefox starts to play the movie before the image is loaded. Can anyone please advise?
Thanks,
Mike
(ps - I'm not an expert on actionscript, so please try to make it simple)
stop();
onEnterFrame = function() {
startLoading("images/photo1.jpg");
};
function startLoading(whichimage) {
loadMovie(whichimage, this.imageLoader);
onEnterFrame = function() {
infoLoaded = this.imageLoader.getBytesLoaded();
infoTotal = this.imageLoader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
if(percentage>=100) {
this.play();
delete this.onEnterFrame;
}
};
}