List, component, done, almost. help

Hey yall I have posted on this before but still having no luck figuring out how to check if (component) list has been selected then proceed to next page, otherwise setFocus.

Right now everything populates and functions perfect, however if the user doesnt select something from list and hits button the page transfers to www.mydomain.com/undefined.

I am trying to run a check on it if they havent then dont do anything but having trouble. Can anyone throw me a bone here?


var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2","/browsecategory.aspx?cat=3"];
var provider:Array=[{label:"Option One",data:0},{label:"Option Two",data:1},{label:"Option Three",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);/////here is where I am sending off
if (provider == undefined) {
setFocus.mcList;
}

Thanks in advance
MT