Humm, you have to make a filterFunction, like this:
private function filterFucntion(item:Object):Boolean
{
   return item.id == "1";
}

Henrique F. Marino
blog.dclick.com.br
www.dclick.com.br

On Tue, Feb 10, 2009 at 3:35 PM, sailorsea21 <[email protected]> wrote:

>   I loaded the following xml as an ArrayCollection.
>
> <data>
> <result id="1">
> <date>today</date>
> <yes>13154</yes>
> <no>654321</no>
> </result>
> <result id="1">
> <date>yesterday</date>
> <yes>21354</yes>
> <no>5468432</no>
> </result>
> <result id="2">
> <date>today</date>
> <yes>2665</yes>
> <no>4256</no>
> </result>
> <result id="2">
> <date>yesterday</date>
> <yes>7425</yes>
> <no>7542</no>
> </result>
> </data>
>
> How can I use this as a dataprovider but only using the values in
> <result id="1"> and not <result id="2">?
>
> My arraycollection var is "Arraydays".
> I tried {Arraydays.(@id=='2')} but it gave me an error: Error #1123:
> Filter operator...
>
> Thanks.
>
>  
>

Reply via email to