initialize="initData()">
import mx.collections.*;
public var myArray:Array = ["A", "B", "C", "D", "E", "F"];
[Bindable]
public var myAC:ArrayCollection;
public function initData():void {
myAC = new ArrayCollection(myArray);
}
public function changeCollection():void {
var addedItemIndex:int=myAC.getItemIndex("B");
ta1.text =String(addedItemIndex);
}