Home > Flash Platform, Zend_Amf > Zend Amf data type mapping & free book from Apress

Zend Amf data type mapping & free book from Apress

September 15th, 2008

Flex data types are round tripped to an PHP class where there native type is manipulated. This program was written to help me test all the different AMF3 data types and how they will be sent to and received from PHP. Check out the video to see almost all data types round tripping. Be the first to post what data type didn’t work and still needs to be fixed before Zend Amf is ready and win a copy of the Essential Guide To Open Source Flash

Zend Amf Round Tripping

Flash Platform, Zend_Amf

  1. September 15th, 2008 at 02:59 | #1

    Seemed to me like the Boolean data type didn’t come back properly.

  2. September 15th, 2008 at 12:13 | #2

    Right on Shaun. I will email you to get your address!

  3. David
    January 1st, 2009 at 17:09 | #3

    I can’t send arrays or generic objects from Flash to PHP, but strings work fine. The other way around, I can receive associative arrays from PHP to Flash without problems.

    I am using Zend AMF from Zend Framework 1.7 full release and ActionScript 3.0 (Flash CS3).

  4. January 1st, 2009 at 21:41 | #4

    These data types have been working since the initially release. Do the unit tests pass on your server?

  5. David
    January 3rd, 2009 at 16:04 | #5

    Where do I find the unit tests?

  6. January 3rd, 2009 at 16:09 | #6

    @David They are in the zend framework full download. http://framework.zend.com/

  7. David
    January 3rd, 2009 at 17:05 | #7

    Thanks — I also found them in the AMF 1.7.2 download, but am having some difficulty in configuring them. My installation of the Zend Framework followed Lee Brimlow’s Amf tutorial, so I have the Zend library located in WAMP/www/Project1/frameworks/Zend/”. Where should I put the tests directory and do I need to specify an includes_path somewhere, like I did in the Amf_gateway.php file for Flash?

  8. January 5th, 2009 at 00:08 | #8

    @David Look at testhelper.php in the tests directory. That is where you specific the path to your /library/ that has the Zend folder.

  9. David
    January 5th, 2009 at 16:26 | #9

    Thanks, I think my problem with running the tests is that I don’t have the PHPUnit installed in my WampServer installation (default install). When I run AllTests.php, I get:

    Warning: require_once(PHPUnit/Framework.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\Project1\frameworks\tests\TestHelper.php on line 30

    Fatal error: require_once() [function.require]: Failed opening required ‘PHPUnit/Framework.php’ (include_path=’.;C:\php5\pear’)

    Any help in installing PHPUnit with Wamp is appreciated (I don’t see PHPUnit in the PEAR directory in WAMP/bin/php/php5.2.6/PEAR directory (only thing there is a “go-pear.phar” file). I apologize for the newb questions– I am new to server configurations. The wiki on PHPUnit installation is a bit confusing to me…

  10. David
    January 8th, 2009 at 11:02 | #11

    Okay, I can get it to work if I change my NetConnection.objectEncoding = 0. I suppose that means my WampServer needs to be configured to allow AMF3 format. How does one accomplish that?

  11. September 10th, 2009 at 14:07 | #12

    I’ve never been able to send my array collections back to php in any way or form. I’ll try setting objectecoding to 0, I hope this helps!

  12. September 10th, 2009 at 15:52 | #13

    No Dice :( so frustrating, I’ve been looking for an answer for months. I’m getting the count on my array now on the PHP side, but I’m not able to treat each index as an Object like I need to.
    I really need help on this, it seems like I should be able to do this, right??

  1. September 15th, 2008 at 02:29 | #1
  2. September 15th, 2008 at 02:30 | #2