Hello, I have galleries online which load jpegs and swfs on the click of a thumbnail button. My script works fine on Safari, Opera, Firefox and Camino on OS X and runs just great on Firefox under Windows. But, under Internet Explorer (PC, don’t care for IE support on OS X…) a bug occurs, it doesn’t run the script the same way, not loading the images.
Here’s a run down of my script :
//This script takes the filename to load (_root.image variable. ex : “image01.jpg”) and loads it into my empty movie clip “viewer”
_root.imageBox.viewer.loadMovie(_root.image);
//Two frames later, I check the load status…First I find my load percentage which I evaluate to find out what is going on in the load process and take appropriate actions :
// Find load percentage
_root.bytes_loaded = _root.imageBox.viewer.getBytesLoaded();
_root.bytes_total = _root.imageBox.viewer.getBytesTotal();
_root.fraction = _root.bytes_loaded/_root.bytes_total;
_root.percent = Math.round((_root.fraction)*100);
// Check loading state :
// Check valid path to file
if (_root.imageBox.viewer.getBytesTotal() == -1) {
_root.imageBox.gotoAndPlay(“show”);
// Check loading in progress
} else if (_root.percent<100) {
_root.imageBox.gotoAndPlay(“loading”);
// Check loading complete
} else if (_root.percent == 100) {
_root.imageBox.stop();
// Check loading stalled
} else if ((_root.imageBox.viewer.getBytesTotal() == 0)) {
_root.imageBox.gotoAndPlay(“show”);
_root.imageBox.viewer.loadMovie(_root.image)
} else {
_root.imageBox.gotoAndPlay(“show”);
_root.imageBox.viewer.loadMovie(_root.image)
}
//*frame label “show” is the frame that initiates the loading, I refer back there if loading goes wrong.
//*frame label "loading is a frame with no actions, before the frame with the load state checking routine, lets me update stats on laoding in progress…
As of now, this way works fine across the board just not in IE… It seems IE alternates between not finding the file, or finding it and not initiating the download…
Any ideas? two other developpers have struck out on this one besides me…
Thanks for any help!