Legal
The views expressed in this blog are my own and do not necessarily reflect the views of Adobe Systems Incorporated.
Search
May 09, 2006
Adobe Flex 3 Renames HTTPService Result
In case you haven't noticed, Adobe released the third beta of Flex Builder yesterday on the labs.adobe.com website. For those of you who are developing Flash applications with PHP backend systems and are following my tutorials, you should know that the result property of the HTTPService has been renamed to lastResult. So, in my previous tutorials where you were sending data to the PHP backend and then returning straight HTML, the datagrid may have looked something like this:
<mx:DataGrid id="dgUserRequest" x="22" y="128" dataProvider="{userRequest.result.users.user}">
Now, it needs to be:
<mx:DataGrid id="dgUserRequest" x="22" y="128" dataProvider="{userRequest.lastResult.users.user}">
I will work with the web team to get my article updated on the Labs wiki.
By the way, if you are working with Flex or Flashand a PHP backend, you should be using AMFPHP instead of encoding data in XML. That way you can transfer objects directly from PHP right into ActionScript. Check out my tutorial on how to do that here.
Comments
Thanks for the heads up.
OMG! I have been pulling my hair out all night. Damn - should have read the docs!
Same applies to webservice results too, by the way.
THANKS FOR THE POST!!!
Oh wow, going to hang myself now :)
[M - Don't do that... We've got a goal of 1 million Flex developers, and we can't have them going off and hanging themselves. The dead ones don't count. :) ]
It's ok I became distracted when throwing monkey nuts at the tree view control.
Thank you for signing in, You may now comment. (Sign Out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)