Hi Chris,

QUESTION:
Do I *have* to create a corresponding Person class on the client side using
ActionScript to access the attributes (firstName and lastName) on the
client, and use registerObject()? If I don't create a corresponding Person
class on the client side, how I can I access the properties in the Person
object returned? What am I getting back on the client side?



You don't have to create an analogous value object on the client;
ActionScript will always allow you to treat what is returned as an object,
and you can "dot-down" through the object properties.  For me, the benefits
of strong typing in terms of compiler checking and code clarity, outweigh
the overhead of creating analagous client-side value objects.  FWIW, I would
keep very light value objects on the client - public properties only, rather
than private properties with getters and setters.  



I'd rather not create analogous value objects on the client side if I can
avoid it, to avoid the classes getting out of sync.



Again, just to reiterate, I think the overhead is justified in terms of code
clarity, but that's an individual call.  There are a number of different
ways that people are auto-generating client-side VOs; you could look to
something like XDoclet for instance to create the *VO.as from *VO.java
files.

Hope that helps,

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12he0fvk5/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123165837/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

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

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