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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to