Calc in dynamic text field when it looses its focus

**flash actionscript
**i ve created 9 dynamic text fields in one row & this is named as fname0,fname1 … fname8 & another 9 dynamic text fields in another row & this is named as chipsname0,chipsname1…chipsname8 ,I created these fields in an array. Based on the user entry in one of the text field i should calculate & display it in the corresponding text field in the other row, this should be done when the user types a number & when that text field looses its focus.

Kindly help me out in solving this problem immediately.