centerAt only works on the first combo change

468
1
02-09-2012 09:09 AM
SeraWhite
New Contributor III
Hi,
    The function below only works on the first combo change event.  The combobox is really not the problem.  The data changes with the combo event, but for some reason the centerAt will not fire on the second change event.  Has anyone seen this issue? 


protected function cbo_ZoomToTerritory_changeHandler(event:IndexChangeEvent):void
   {   
    var extentString:String = cbo_ZoomToTerritory.selectedItem.data;
    var extentVals:Array =extentString.split(",");
    
               mainMap.extent.update(extentVals[2],extentVals[3],extentVals[0],extentVals[1]);
    mainMap.centerAt(mainMap.extent.center);
   }
Tags (2)
0 Kudos
1 Reply
SeraWhite
New Contributor III
I am really sorry, but there appears to be nothing wrong with this code.  It works fine.  I started a new browser window and it all worked perfectly.  I can't figure out how to delete a post. 

Sera
0 Kudos