What happens if you just go

currentOrder = result;



bob keleher wrote:
> I'm using calls to ColdFusion (MX 7.02)to populate master/detail pages. This
> works fine in Flex 2. In Flex 3, the remote call to populate the
> master datagrid works as expected using the returned query results, but the
> call to get the details (an object) no longer works - I'm now getting an error
> #1009 - Cannot access a property of a null object reference.
>
> Here's the remote call:
>
> <mx:method name="getOrder"
> result="showOrder(event.result as Object)"
> fault="myApp.faultHandler(event)" />
>
> and part of the showOrderfunction:
>
> public function showOrder(result:Object):void
> {
> currentOrder = result as ORDERS; <-- this assignment doesn't work
> if(currentOrder.manuallyCreated) <-- this causes the error
>
> debugging shows that event.result is being returned from ColdFusion
> and is being passed to showOrder() as result but for some reason the
> assignment to currentOrder no longer works.
>
> Any ideas as to what might have changed to caused this, or am I
> doing something wrong?
>
> Thanks
>
> Bob
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5194
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to