Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function resultHandler(event:ResultEvent):void{
- var result:ArrayCollection = event.result as ArrayCollection;
- public function resultHandler(event:ResultEvent):void
- {
- var ac:ArrayCollection = new ArrayCollection([event.result])
- // ...
- }
- var o:Object = ac.getItemAt(0) as Object;
- trace(o.yourObjectProperty.toString());
- if (event.result is ArrayCollection) {
- result = event.result;
- }
- else {
- result = new ArrayCollection([event.result]);
- }
- private var _acLocation:ArrayCollection=new ArrayCollection;
- public function set acLocation(acLocation:ArrayCollection):void{
- _acLocation=acLocation;
- //do this if you want for exaple to assign the arraycollection to a datagrid dataprovider
- dgMyDataGrid.dataProvider=_acLocation;
- }
- public function get acLocation():ArrayCollection{
- return _acLocation;
- }
- acLocation=new ArrayCollection(event.result as Array);
Add Comment
Please, Sign In to add comment