Note that there are some explanatory texts on larger screens.

plurals
  1. POAS3 - preloader occasionally won't load images, or external swf
    primarykey
    data
    text
    <p>First question here; hope you can help. I'm completely flummoxed.</p> <p>I created a flash slideshow which preloads the images. After preloading the images, it proceeds to load an external flash file and then the images. The problem is, very very occasionally, it will fail to actually load the images into view, and I'll just see the preloading animation, but it might still load the external swf. Additionally, it might do the reverse, and load the images and not load the external swf.</p> <p>I have no been able to reproduce the latter, although the client has noticed it on a few occasions. The former will happen for me, but only very rarely.</p> <p>Here is the (I think) relevant code:</p> <pre><code>function onXMLLoadComplete(e:Event):void { // create new xml with the received data xmlSlideshow = new XML(e.target.data); // get total slide count // misc xml data info_holder.mcInfo.lbl_tagline.text = xmlSlideshow.misc.@tagline; info_holder.mcInfo.goToUrl_btn.lbl_view.text = xmlSlideshow.misc.@view.toUpperCase(); intSlideCount = xmlSlideshow..img.length(); //trace(intSlideCount); imageArray = new Array(intSlideCount); for (var i:int = 0; i &lt; intSlideCount; i++) { //imageArray[i] = new URLRequest(xmlSlideshow..img[i].@src); var loader:Loader = new Loader(); loader.load(new URLRequest(xmlSlideshow..img[i].@src)); //trace(xmlSlideshow..img[i].@src); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoadComplete); //loader.load(imageArray[i]); } } function onImageLoadComplete(e:Event):void { if (++numberOfImagesLoaded == intSlideCount) { // animate the info bar and then //trace(intSlideCount); //trace(numberOfImagesLoaded); info_holder.play(); // switch the first slide without a delay // reset index of images //load map div via jQuery if (ExternalInterface.available) { ExternalInterface.call('openMap'); } intCurrentSlide = -1; switchSlide(null); } } </code></pre> <p>The live site is here: <a href="http://www.luxuryportfolio.com" rel="nofollow noreferrer">http://www.luxuryportfolio.com</a> - see if any of you can reproduce the above issues...</p> <p>Thanks!!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload