News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kevin Schroeder's Blog:
Passing typed ActionScript objects to Flex using PHP and a message queue
June 07, 2011 @ 08:20:12

Continuing on in his Flex and PHP series Kevin Schroeder has a new post to his blog today looking at how to send typed ActionScript objects to Flex so he could pass PHP objects and their structure directly back to the waiting frontend.

What I wanted to do was use the sales notification mechanism to pass PHP objects to Flex using the message queue. But I could not get the unserialization mechanism to work and so I had to settle for passing a simple message that a sale had been made. However, because you can pass typed objects back and forth between PHP and ActionScript over HTTP using Zend_Amf_Server I figured that there MUST be a way of doing it automatically.

He walks you through the steps to discovery that eventually got him to his end goal - making a simple valueObject class to use for the connection, a basic PHP script (using Zend_Amf) to parse the object's data and a bit of code to send it back to the waiting MQ queue via a Zend_Queue adapter.

0 comments voice your opinion now!
flex message queue actionscript object mq


blog comments powered by Disqus

Similar Posts

Kevin Schroeder's Blog: Connecting PHP to ActionScript and Flex using Stomp

Wojciech Sznapka's Blog: Accessing private object property from other object in PHP

Kevin Schroeder's Blog: ZF2 Dependency Injection - Multiple Object Instances

DevShed: Enforcing Object Types in PHP - Using the Type Hinting Feature in PHP 5

Mike Potter's Blog: Introduction to Adobe Flex Builder for PHP Developers


Community Events

Don't see your event here?
Let us know!


framework library introduction php7 version podcast language api voicesoftheelephpant opinion extension interview example wordpress laravel5 series community unittest release laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework