");
application.tl.labelField = "@label";
application.tl.dataProvider = xmlObjE4X2.topnode.node;
}
public function setXMLDP_AS() : void
{
application.tl.dataProvider = testXMLDP.topnode.node;
application.tl.labelField='@label';
}
[Bindable]
public var myCol:ArrayCollection;
public var myDPArray:Array = [{label: "menu 2"},{label: "mail"},{label:"inbox"},{label:"outbox"},{label:"you are a draft"},{label:"check me"},{label: "menu 1"},{label: "file"},{label:"I am a Menu"},{label:"here goes Nothing"},{label:"aw, don't sell yourself short"},{label:"can you check me?"}];
public function setArrayCollectionDP() : void
{
myCol = new ArrayCollection(myDPArray);
application.tl.dataProvider = myCol;
}
]]>