I’m trying to make a list component in flash 8 have a links in them. So far I have this Actionscript in the main timeline for the component.
I named the List component on the stage as “list”
var listener:Object = new Object();
listener.change = function(event) {
trace("You selected: "+event.target.selectedItem.label);
getURL(event.target.selectedItem.link);
}
list.addEventListener("change",listener);
list.addItem("facebookfirewall.com",{label:currentTerm,link:"http://www.facebookfirewall.com/"} );
[COLOR=#000000][COLOR=#007700]
But it doesn’t work for some reason. It calls a undefined url
[/COLOR][/COLOR]
Firefox can't find the file at /C|/DOCUME~1/COMPAQ~1/LOCALS~1/Temp/undefined.
Can someone here help me to get this to work?:goatee: