Question : Actionscript 3 functions

So i have these two functions

searchFocusId()
zoomFoundNode()

They are actionscript3 code out of a flex program.

i want zoomFoundNode() to run after searchFocusId() has completely finished, you can see below, as is zoomFoundNode() starts to run before searchFocusId() is finished executing so the result is incorrect.  What would a listener look like for AS3 in order to wait for searchElement to complete before moving on to the next function.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
private function searchFocusID():void
	{
	
		chart.searchElement(searchID.text,null,null,false,true);
        
     zoomFoundNode();  
		
           

	}
	
private function zoomFoundNode():void
{
	
	chart.zoomContent(5,null,true,true,1000);  
}

Answer : Actionscript 3 functions

Random Solutions  
 
programming4us programming4us