all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

listbox - xml integration


listbox - xml integration Ldavinci
1/16/2007 7:53:49 PM
flash actionscript:
....please help...

var webLinks_xml:XML = new XML();
webLinks_xml.ignoreWhite = true;
webLinks_xml.onLoad = function(success:Boolean) {
if (success && this.status == 0) {
for (var aNode:XMLNode = this.firstChild.firstChild; aNode != null;
aNode=aNode.nextSibling) {
webLinks_cb.addItem({label:aNode.attributes.label,
data:aNode.attributes.url});
}
}
};
webLinks_xml.load("WebLinks.xml");
function webLinks_cb_Changed(evt:Object) {
trace(evt.target.selectedItem.data);
}
webLinks_cb.addEventListener("change", webLinks_cb_Changed);
Re: listbox - xml integration frz1
1/16/2007 9:59:03 PM
what getURL? is the data being traced and you've just removed the getURL for
some reason? Am i blind?

to me it looks like this would try to trace the data on selected item... so
are u seeing a url there? if so, yer xml is fine and its something about getURL
that isn't working (read my recent post on enableJSURL and enableHREF
params)... otherwise its something about yer xml file and loading it in...
AddThis Social Bookmark Button