[flexcoders] Value Object inside Value Object?

2006-10-19 Thread Dan
Hi, does anyone know besides primitive type, is it possible to have a 
value object as an element of another value object?

Thanks




--
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/
 



Re: [flexcoders] Value Object inside Value Object?

2006-10-19 Thread Thomas Rühl

Hi, yeah, sure... why not...?

In your first VO:
public var aString : String;
public var anotherVO : anotherVO;

In your second VO:
public var anotherString : String;

To use it:

var localVO = new VO();
localVO.aString = 'foo 1';

var localOtherVO = new anotherVO();
localAnotherVO.anotherString = 'foo 2';

// assign the second VO to the first one...
localVO.anotherVO = localAnotherVO;

// localVO is now set with a string and another VO.

Cheers, Thomas



   Thomas Rühl
   Design, Programming  Concepts

   akitogo OHG
   Hanauer Landstrasse 188
   60314 Frankfurt

   Telefon +49 (0) 69 800 69 445
   Fax +49 (0) 69 800 69 449
   Mobil   +49 (0) 179 750 75 87
   E-Mail  [EMAIL PROTECTED]
   Web http://www.akitogo.com




Dan wrote:
 
 
 Hi, does anyone know besides primitive type, is it possible to have a
 value object as an element of another value object?
 
 Thanks
 
 


--
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/