|
Hi
consider the
following code ,
although i
explicitly cast each item returned from the WS still line 2 works fine (simple
public member of EnumVO) and like 3 doesn't (getter for label
member)
i read the
article of how to work with complex objects at the dev site and this is the way
to work , so why the mapping
is not done , it
seems that i get a new created object with the same members as the one on the
server (not the AS one).
BTW - i use the
POJO2AS tool by meagle .
any ideas
?
private function
loadEnumsResult(event:Object):Void{
//
Array that contain EnumVO objects
var enumValues:Array = event.result; for
(var i=0;i <
enumValues.length;i++){
// NOTE - this is not an instance of the object , just something similar 1 var enumValue:EnumVO = (EnumVO) enumValues[i];
2 Dumper.info("loading value=" + enumValue.label); 3 Dumper.info("loading
value=" + enumValue.getLabel());
} thanks
Shlomi
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
|
Title: Mercury Email Signature
- [flexcoders] Mapping between WS result and local AS object Shlomi Cohen

