Forum Moderators: open
for (var i:Number = 0; i < numItems; i++)
{
var child:XMLNode = children[i];
var name:String = child.attributes.name;
var link:String = child.attributes.link;
comboBox.addItem (name, link);
}
}
else
{
trace ("Error loading data");
}
};
And my XML looks like this:
<data>
<villa name="Villa Penasco" link="http://72.xx.xx.xx/proptest.asp?PID=202"/>
<villa name="Villa Taz" link="http://72.xx.xx.xx/proptest.asp?PID=109"/>
</data>
And lastly, in the first frame of the comboBox I have this:
on (change) {getURL(link);
}
I can hardcode the "link" above, for example on(change) {getURL("http://www.whatever.com"); and it works fine, but it's not recognizing the "link" variable that should be pulled from the XML.
Any ideas? Thanks!
[edited by: jatar_k at 6:12 pm (utc) on June 21, 2006]
[edit reason] obfuscated url [/edit]