I use AMFPHP no issues here... my Objects transfer just fine....

1.Have you registered the class alias in your UserVO.as?

import flash.net.registerClassAlias;    
[RemoteClass(alias="UserVO")]


2.My service calls in my delegates look like this.....

public function getUser(vo:UserVO):void
{
        var token:AsyncToken = this.service.getUser(vo);
        token.addResponder(this.responder);
}

3. Did you set the classMappingsPath in gateway.php?

$gateway->setClassMappingsPath("my/path/to/voDir/");


....
steve



--- In flexcoders@yahoogroups.com, "JWOpitz" <[EMAIL PROTECTED]> wrote:
>
> an update to this:
> 
> I ended up dropping the casting to the UserVO.php.  So the function
> signature looks like:
> 
>      function getUser ($user){}
> 
> rather than 
> 
>      function getUser (UserVO $user){}
> 
> then inside the new function I set the type to an object using:
> 
>      settype(&user, "object");
> 
> this allows the php function to be able to retrieve the object
> propeties such as $user->name or $user->password since it sees it as
> an object rather than the array flex likes to send.
> 
> Though this works, it doesn't sit well with me because I thought the
> whole idea of remoting was to be able to pass classes around without
> having to do these kind of work arounds.
> 
> If anyone has any ideas on this, please give me a shout.
> 
> Thanks,
> J
>

Reply via email to