From: Owen v. D. <owe...@gm...> - 2006-11-15 15:29:18
|
Hi All, I'm working on an AS3/Blaze project ( not compiled with mxmlc ) and having some trouble getting the class mapping to work with it ( using AMFPHP 1.2 and PHP5 on the serverside ). Basically i have a bunch of valueobjects that are returned by the service, and i have defined those in advancedsettings.php in the outgoing array like this: 'itemvo' => 'com.foo.framework.vo.ItemVO', 'metadatavo' => 'com.foo.framework.vo.MetaDataVO', In the service browser i see that the returned objects are indeed mapped to these value objects, so far so good. However in AS3, when i type the result data to the clientside valueobject, i get a null result, like this: // test item vo class mapping var testItemVO : ItemVO = data as ItemVO; trace( testItemVO ); Now since i assume the problem is actually on the as3 side, i was wondering if anyone has a simple example that uses class mappings with the Blaze compiler instead of the mxmlc compiler and wouldn't mind sharing it. For now i work around the issue by manually constructing the value object in the result handler but it saves me a LOT of time if AMFPHP can do the translation. -- Owen van Dijk |