initialize="initData();">
import mx.collections.*;
public var myArray:Array = [{label:"A", data:"1"},
{label:"B", data:"2"},
{label:"C", data:"3"}];
[Bindable]
public var myAC:ArrayCollection;
public var myCursor:IViewCursor;
public function initData():void {
myAC = new ArrayCollection(myArray);
}
public function testCollection():void {
data.myCursor=myAC.createCursor();
ta1.text="cursor is at: " + myCursor.current.label;
myCursor.insert({label:"ME", data:"Augusta"});
ta1.text+="\n cursor is at: " + myCursor.current.label;
}