Ian,

If you put a breakpoint in, what's the type of e.result?  It looks  
like it's something that's not casting to troubleLogEntry, resulting  
in troubleLogEntry having a null value.

Are you using CF and trying to return a CFC that's aliased to  
TroubleLogVO?

-Joe

On Jul 6, 2007, at 11:48 AM, Ian Skinner wrote:

> What basic concept am I missing here?
>
> import Model.troubleLogVO;
> ....
> [Bindable]
> public var troubleLogEntry:troubleLogVO = new troubleLogVO;
> ....
> /* CRUD readEvent result Handler */
> protected function readEventResult(e:ResultEvent):void
> {
>     troubleLogEntry = e.result as troubleLogVO;
>     Alert.show(e.result.id);
>     Alert.show(troubleLogEntry.id);
> }
>
>
> The first Alert works, e.result.id shows the proper value.  The second
> Alert fails saying that one can not access properties on a Null  
> object.
>
> TIA
> Ian
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4331
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