Hi,

I have a cfc that returns this query object to flex.  It seems to
convert it to an ArrayCollection?  Is that correct?

Questions

1. How can I get at the "email" field in this array?

2. How can I check if the array has a len greater than 0?

I tried:  trace(event.result.email), but that does not work and I assume
because I am not referencing a position in the Array.

I have this private function in my code:

     private function loginUser_result( event:ResultEvent ) : void  {
     trace(ObjectUtil.toString(event.result));
      dispatchEvent( new Event("loadHomePage") );
     }

The above trace() displays this.

(mx.collections::ArrayCollection)#0
   filterFunction = (null)
   length = 1
   list = (mx.collections::ArrayList)#1
     length = 1
     source = (Array)#2
       [0] (Object)#3
         email = "[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> "
         password = "test"
         userId = 1
     uid = "BE12A633-8FC1-2B1B-BFB5-292A1416478A"
   sort = (null)
   source = (Array)#2


Reply via email to