Sorry my earlier response was for XML data

Try

acDept.getItemAt(i).DeptID .toString( );


Mark Shen wrote:
> 
> 
> Hi Sherif
>  
> This doesn't have relation with i.
>  
>  Thanks
>  
> Mark
> 
> ----- Original Message ----
> From: Sherif Abdou <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, February 12, 2008 10:13:18 AM
> Subject: Re: [flexcoders] An ArrayCollection question ?
> 
> see what your ArrayCollection looks like but try acDept.getItemAt( 
> "DeptID") .toString( );
> 
> ----- Original Message ----
> From: markflex2007 <markflex2007@ yahoo.com <http://yahoo.com/>>
> To: [EMAIL PROTECTED] ups.com <http://ups.com/>
> Sent: Tuesday, February 12, 2008 9:07:29 AM
> Subject: [flexcoders] An ArrayCollection question ?
> 
> Hi,
> 
> I have a ArrayCollection acDept that saved the data passed from
> coldfusion cfc
> 
> <cfquery name="getDepartment " datasource=" bursary">
> SELECT DeptId, Dept FROM DeptList
> </cfquery>
> 
> I want loop over all the ArrayCollection and show all the DeptId.I use the
> following code and I get error for "acDept.valueOf( "DeptID") ."
> 
> for ( var i : int =0; i < acDept.length ; i++)
> {
> Alert.show(acDept. valueOf(" DeptID"). toString( ));
> 
> }
> Please help me to know which method I can use to get DeptID.
> 
> Thanks
> 
> Mark
> 
> 
> 
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search. 
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>  
> 
> 
> 
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo! 
> Search. 
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>  
> 
> 

-- 
Ben Marchbanks

::: magazooms :::
digital publishers,  taking print beyond paper......

http://www.magazooms.com

Greenville, SC
864.284.9918

Reply via email to