Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

missing first line of XML when read by Flash

Status
Not open for further replies.

gonecat

Programmer
May 17, 2004
4
US
for some reason, my flash movie isn't reading the first line of XML. any help would be greatly appreciated

my xml looks like this:<?xml version="1.0" encoding="iso-8859-1"?>
<xml>
<gallery path="images2"/>
<disk artist="none" title="none" label="CASABLANCA RECORDS" credit="none" image="CASAlogo.jpg"/>
<disk artist="none" title="none" label="STRUMMER2 RECORDINGS" credit="none" image="strummer2.jpg"/>
<disk artist="none" title="none" label="CARL WILSON FOUNDATION" credit="none" image="cwf.jpg"/>
<disk artist="none" title="none" label="CASABLANCA RECORDS" credit="none" image="CASAlogo.jpg"/>
<disk artist="none" title="none" label="STRUMMER RECORDINGS" credit="none" image="strummertype.jpg"/>
</xml>


my flash movie is reading it in like this:

// ignore trailing spaces and CR in XML nodes
XML.prototype.ignoreWhite = true;
Gallery = [];
listGallery = new LoadVars();
listGallery.load("listgalleries.txt");
artist = title=label=credit="";
ta._visible = tt._visible=tl._visible=tc._visible=imageFrame._visible=false;
next._visible = false;




thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top