I'm not sure if this is gonna work, but do you have the RemoteClass alias in
you Flash class?

for example:

package com.marines.officer {

  [RemoteClass(alias="PictureVO")]
  public class Picure { }

}

This works for me in Flex, don't know about Flash.

Mark



2009/2/13 Josh Team <josht...@gmail.com>

> So I have my AMF set up going.. and I have run over an awkward occurrence,
> if anyone has insight I would love to hear it.
> I created my VOs with:
>
> class PictureVO {  public $_explicitType = 'com.marines.officer.Picture; }
>
> This works great outbound.. no problem. Flash sees the PictureVO as
> com.marines.officer.Picture. However, when Flash changes the object and
> tries to send it -back- to me.. it doesn't get mapped..  I get this error
> from Zend_Amf_Request:
>
> "Unable to parse null body data com.marines.officer.User mapped class  is
> not defined"
>
> So I then add the following in my AMF Gateway:
>
> $server->setClassMap('com.marines.officer.Picture', 'PictureVO');
>
>
> and now it works great, execpt Flash rejects the _explicitType.. so it's
> not transforming with _explicitType and _explicitType is making it back to
> the Flash domain. Is there a way to map inbound objects w/o using
> ->setClassMap()..
>
> Thanks,
> Josh Team
>

Reply via email to