Note that there are some explanatory texts on larger screens.

plurals
  1. POMy XML stopped loading in Flash
    primarykey
    data
    text
    <p>I had a project which was successfully loading images from an XML file to make a Flash gallery. However, it seems to have suddenly stopped working. I've done troubleshooting and found that it is because the SWF is no longer loading the XML file. However, I had not messed with the SWF. I went into the FLA file and the code was the same. Here it is, for a reference.</p> <pre><code>var strTitle = "THIS IS TITLE TEXT"; var strDescription = "This is descriptive"; var intCurrent = 0; var arrDescription = new Array();//Stores descriptions var arrTitle = new Array();//Stores titles var arrMainLoc = new Array();//Stores image locations var arrThumbLoc = new Array();//Stores thumb locations var intCurrent:Number = 0;//Used to store the number passed from the button press stop(); System.security.allowDomain("http:/gretchencomlydesign.com"); myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.load("imgDATA.xml"); myPhoto.onLoad = function(success) { trace("loaded"); var intImageCount = myPhoto.firstChild.childNodes.length; for (i = 0; i &lt; intImageCount; i++) { arrDescription[i] = myPhoto.firstChild.childNodes[i].attributes.desc; arrTitle[i] = myPhoto.firstChild.childNodes[i].attributes.titl; arrMainLoc[i] = myPhoto.firstChild.childNodes[i].attributes.main; arrThumbLoc[i] = myPhoto.firstChild.childNodes[i].attributes.thumbs; //trace(arrTitle[i]); //Tests Loaded titles //trace(arrDescription[i]); //Tests Loaded descriptions } play(); //trace(myPhoto.firstChild.childNodes[0].attributes.desc); }; myPhoto.onLoad = function(false) { trace("XML failed to load"); }; </code></pre> <p>It did load, but now will no longer work. I checked and the server is Apache, and my case matches. My file is named "imgDATA.xml". Has anybody ever experienced anything like this?</p> <p>EDIT: It's worth mentioning that I tried changing the name of the target XML file and the XML file to be loaded, and it still wouldn't load.</p> <p>Edit 2: After tweaking the SWF code, I get this output</p> <pre><code>loaded onData:&lt;pop&gt; &lt;img titl="0" desc="" main="pics/pop/main/0.jpg" thumbs="pics/pop/thumbs/0.jpg"/&gt; &lt;img titl="1" desc="" main="pics/pop/main/1.jpg" thumbs="pics/pop/thumbs/1.jpg"/&gt; &lt;img titl="2" desc="" main="pics/pop/main/2.jpg" thumbs="pics/pop/thumbs/2.jpg"/&gt; &lt;img titl="3" desc="" main="pics/pop/main/3.jpg" thumbs="pics/pop/thumbs/3.jpg"/&gt; &lt;/pop&gt; </code></pre> <p>Here is my XML file:</p> <pre><code>&lt;pop&gt; &lt;img titl="0" desc="" main="pics/pop/main/0.jpg" thumbs="pics/pop/thumbs/0.jpg"/&gt; &lt;img titl="1" desc="" main="pics/pop/main/1.jpg" thumbs="pics/pop/thumbs/1.jpg"/&gt; &lt;img titl="2" desc="" main="pics/pop/main/2.jpg" thumbs="pics/pop/thumbs/2.jpg"/&gt; &lt;img titl="3" desc="" main="pics/pop/main/3.jpg" thumbs="pics/pop/thumbs/3.jpg"/&gt; &lt;/pop&gt; </code></pre>
    singulars
    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