i cant get my link to work in this. does anyone have a better way? here it is
as
myXML = new XML();
myXML.ignoreWhite = true;
myXML.load('http://media.q101.com/av/flash/NewMusicFirst/rL.xml');
myXML.ref = this;
myXML.onLoad = function (succes) {
var v2 = this;
if (succes) {
var v3 = v2.firstChild;
nodes = v3.childNodes;
var v1 = 0;
while (v1 < nodes.length) {
v2.ref['Title_txt' + v1].text = nodes[v1].attributes.name;
subnodes = nodes[v1].childNodes;
v2.ref['link' + v1] = subnodes[0].firstChild.toString();
trace(subnodes[0].firstChild);
v2.ref['holder_mc' + v1].picHolder_mc.loadMovie(subnodes[1].firstChild.toString());
trace(v2.ref['holder_mc' + v1]);
v2.ref['holder_mc' + v1].hitArea = v2.ref['holder_mc' + v1].hit_mc;
v2.ref['holder_mc' + v1].hit_mc._visible = false;
v2.ref['holder_mc' + v1].onPress = function () {
getURL(v2.ref['link' + v1]);
}
++v1;
}
} else {
trace('Error loading XML document');
}
};
xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data[
<!ELEMENT title (link, image)>
<!ATTLIST title name CDATA #REQUIRED>
<!ELEMENT link (#PCDATA)>
<!ELEMENT image (#PCDATA)>
]>
<data>
<title name="IT'S NEW DAMMIT">
<link>"http://www.q101.com/airstaff/sherman_newdammit.aspx"</link>
<image>http://www.q101.com/pics/misc/dammit_fs.jpg</image>
</title>
<title name="LOCAL MUSIC MAILROOM">
<link>"http://www.q101.com/airstaff/sherman_newdammit.aspx"</link>
<image>http://www.q101.com/pics/misc/local.jpg</image>
</title>
<title name="VIDEOS">
<link>http://www.q101.com/airstaff/sherman_newdammit.aspx</link>
<image>http://www.q101.com/pics/misc/video.jpg</image>
</title>
</data>
</data>