Listbox-getURL

Does anyone know how to modify this code which is used with a listbox, so the getURL only gets the absolute url “http://www.whatever.com” The current code adds a path to the files on your hard drive where the swf is located,

(please see attachment for error)

code…

Originally Posted by surya_mayekar
drag a List component on stage give it instance name my_list

and on actionscript layer put this script

//var my_list:mx.controls.List;
my_list.addItem({data:‘http//:www.adobe.com’, label:‘Flash’});
my_list.addItem({data:‘http//:www.adobe.com’, label:‘Dreanweaver’});
my_list.addItem({data:‘http//:www.adobe.com’, label:‘ColdFusion’});
// Create listener object.
var listListener:Object = new Object();
listListener.change = function(evt_obj:Object) {
getURL(evt_obj.target.value, _blank);
};
// Add listener.
my_list.addEventListener(“change”, listListener);