Ah, ok. I missed that.
The example I saw had the data property declared as *
I think I'll carry on doing it the way I have been though to be honest.
Thanks for the replies.
On 10/8/07, Muzak <[EMAIL PROTECTED]> wrote:
>
> Flex knows the data property is of type AptVO, so you'll get
> codehints/completion.
>
> public class GetAPTStatusEvent extends CairngormEvent {
> public var data:AptVO;
> }
>
>
>
>
> ----- Original Message -----
> From: "Giles Roadnight" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, October 08, 2007 1:08 PM
> Subject: Re: [flexcoders] Cairngorm Events - data object
>
>
> > Ok, I do use VO's and have several of them in my code. The compiler
> still
> > won't know that the data object is an aptVO - you'll have to cast it
> each
> > time. If you just have an aptVO as a property of the event you can just
> type
> > eventIntance.voPropertyName.voProperty and the compiler is happy, you
> get
> > code completion and you don't need to cast anything to tell teh compiler
> > that eventInstance.data is an aptVO.
> >
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
--
Giles Roadnight
http://giles.roadnight.name