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;
var removedItem:String=String(myCursor.remove());
ta1.text+="cursor is at: " + myCursor.current.label;
}