Perhaps your ActionScript class OrderVO constructor is doing something
like this:

class OrderVO
{
        public function OrderVO(client:String, deposit:String     )
      {
                this.client = client;
                this.deposit = deposit;
                // ... initialize other properties
      } 

}

You should not do this for Value Objects that you get back from AMF
because of the way the Flash Player constructs objects during
deserialization. When the player deserializes a strongly typed object,
it does so by first constructing a pseudo-representation of an object,
setting the properties based, then calling the real constructor. 

This allows you to mimic passing constructor arguments - but it means
you shouldn't set your member variables from the constructor parameters
blindly as they will not be passed in to the constructor on object
instantiation.

You can easily work around this by checking parameters were actually
passed to the constructor... either check the length of "arguments", or
simply test that the first argument isn't undefined.

class OrderVO
{
        public function OrderVO(client:String, deposit:String     )
      {
                if (client != undefined)
            {
                        this.client = client;
                        this.deposit = deposit;
                        // ... initialize other properties
                }
      } 

}





-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of T.V
Sent: Thursday, April 21, 2005 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] BUG ? RPC call with Array lost value !

in picture 1 ,RPC call with correcet data, but AMF lost most value of
firest item, see picture2, why ?


 
Yahoo! Groups Links



 


 
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