PureMVC Architects Lounge

PureMVC Manifold => Standard Version => Topic started by: lordnahkim on February 09, 2009, 10:27:54



Title: amfphp placeholder data...
Post by: lordnahkim on February 09, 2009, 10:27:54
Hello kind people,

I'm building an app that will consume AMFPHP.  Unfortunately I have no experience doing so.  My PHP team are noobs on the AMFPHP front as well.  I'm ahead of their schedule so I'm looking for some guidance on creating data placeholders for my Flash app.  Whatever "AMF serialized binary" means, it sounds much more efficient than XML.  But I've had a heck of a time seeing what it looks like.  AFAIK I'll have methods in my outer model classes that will send/receive to/from the php api.  What I'm wondering is what that returned data looks like?  I'm imagining something like json?  But is it actually really the exact data types ready to go (ie: Strings & Arrays)?  Is there any structure delivering it that I need to parse down like how json or xml works?

Thank you much for taking the time.


Title: Re: amfphp placeholder data...
Post by: Joel Hooks on February 09, 2009, 03:23:50
The returned data is binary objects, unlike JSON or XML, which is ascii text (generally). You can strongly type the data so when AMFPHP sends an ObjectVO via AMF, your application recieves and ObjectVO - and not a string of ascii that you must then process.


Title: Re: amfphp placeholder data...
Post by: lordnahkim on February 11, 2009, 12:34:53
perfect!  Thanks so much Joel.  I know this wasn't actually a PMVC question, so I appreciate you taking the time.