like this?
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="vertical" 
creationComplete="initApp()" xmlns:containers="flexlib.containers.*">
<mx:Style source="styles.css"/>
<mx:Script>
<![CDATA[
import mx.collections.IViewCursor;
import mx.collections.ArrayCollection;
[Bindable]
private var myArrayCollection:ArrayCollection = new 
ArrayCollection([{Letter:'A',Name:"Andi"},
{Letter:'A',Name:"Ash"}, 
{Letter:'A',Name:"Axe"}, 
{Letter:'B',Name:"Bart"}, 
{Letter:'B',Name:"Boe"}, 
]); 
private function initApp():void{
var arrAData:Array = [];
var arrBData:Array = [];
for each(var item:Object in myArrayCollection){
if(item.Letter=="A"){
arrAData.push(item);
}else{
arrBData.push(item);
}
} 
}
]]>
</mx:Script>



----- Original Message ----
From: Harry Saputra <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 8:37:39 PM
Subject: [flexcoders] Splitting Array Content , keyword by field content

Dear All,
 
I have DataProvider as Array like this :
 
AAndi
AAsh
AAxe
BBart
BBob

 
Called arrMainData. Can I split it into 2 variable Array when I complete 
retrieve all Data ? like this :
 
arrAData
 
AAndi
AAsh
AAxe

 
arrBData
 
BBart
BBob

 
Thanks J



      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Reply via email to