I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at index/loginHandler()
    at index/___index_Operation3_result()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at DirectHTTPMessageResponder/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

My CFC is returning a Query. Does that help?

----------------------------------------
From: "Amy" <[email protected]>
Sent: Tuesday, January 27, 2009 10:42 AM
To: [email protected]
Subject: [flexcoders] Re: Setting data from web service to ArrayCollection. 

--- In [email protected], "Wally Kolcz" <wko...@...> wrote:

>

> I moved my CFC and database to my localhost so I can debug the 

webservice output and see it. I am a wee bit confused. The results 

panel is saying something like this:

> 

> e --> result --> source --> [0] --> firstName (etc)

> 

> How do I set that local? 

> 

> I tried myData = e.result.source as ArrayCollection and then tried to 

trace myData.getItemAt(0).firstName but got an error. 

Try

myData = ArrayCollection(e.result.source);

Your CFC may be returning an Array.



Reply via email to