Datalist and button from components library

Gooooooooooooooooooooooooood Morning!

Question about using datalist and button from components library. If the datalist is not selected and user pushes button I want it to do nothing, right now if user has not clicked on datalist for selection and clicks the button it takes them to www.domain.com/undefined. I am trying to run it like so with a setFocus so it will highlight datalist if not selected:


_global.style.setStyle("themeColor", "haloOrange");
var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2", "/browsecategory.aspx?cat=3"];
var provider:Array=[{label:"Selection 1",data:0}, {label:"Selection 2",data:1}, {label:"Selection 3",data:2}];
choice.mcList.dataProvider=provider;
var obj:Object={};
obj.click=function(eo:Object)
{
var count:Number=choice.mcList.selectedItem.data;
getURL(arUrl[count],"_self");
trace("count="+arUrl[count]);
}
but.mcSubmit.addEventListener("click",obj); {
 if (obj = false) {
  setFocus.Object;
 }
}

Thanks in advnace if anyone can pass some insight. MT