Guys,I think I got it. Below is the code....I have my three extents in a combobox instead of Buttons. Below is the snippet
//changeView is the event listener for combo box's change property
private function changeView(event:Event):void
{
var viewExtent:Extent=new Extent(Number(bboxArray[0]), Number(bboxArray[1]), Number(bboxArray[2]), Number(bboxArray[3]), null);
selectedExtent = viewExtent;
map.extent=selectedExtent;
//mx.controls.Alert.show(selectedView);
}
bboxArray has xmin,ymin,xmax and ymax values respectively which I get from the database.Please don't forget to write if statements depending on you case.Thanks.