// you’re reading...

AMFPHP

Flex and AMFPHP finally working for me:Some notes to self

I’m out of town and based on a blog post that I came across last night with the Remoting Connection class I finally got a functional result from AMFPHP and Flex 2 beta 3.

The following are more notes to self than actual articulate pieces of writing. As I’m digging through this and finally understanding it I need to document it so that I can reproduce these results later.

as a sidenote:I know this could have been done with watching variables but I’m embarassed to admit I never learned how to use the debugger and I’m kinda on a roll right now and don’t want to go read a debugger tutorial and never get back around to this.

The result from amfphp using the code creation template has a property serverInfo(which is an object.

serverInfo has the following properties:

  1. columnNames
  2. cursor
  3. id
  4. initialData
  5. serviceName
  6. totalCount
  7. version

Okay- I decided to publish this early and update it as I go so that if someone out there is willing to share a shortcut or a drop of knowloedge that would move me forward with a poor soul they will do so. I’m also posting it so that anyone out there who is at about my level and or point of frustration with getting anything back from PHP calls from Flex 2 can piggyback if they wish. The project files are here. A working version of where I am now can be found here

Discussion

5 comments for “Flex and AMFPHP finally working for me:Some notes to self”

  1. You might wanna check this out:
    http://renaun.com/blog/?p=31

    He created a RemoteObject that works with AMF0 in Flex 2 Beta 3 and Cairngorm 2.

    Posted by Aaron Heimlich | May 13, 2006, 6:05 pm
  2. Thanks. I came across that this afternoon- right before my 2 year old woke from his nap-so I haven’t had a chance to get a good look at it yet. I’m going to check it out tonight.

    Posted by diamondtearz | May 13, 2006, 8:14 pm
  3. Followed your post from my post. I am trying to figure out what your question is on this post?

    Posted by Wade Arnold | May 14, 2006, 1:30 pm
  4. Wade- I believe the problem is that I was trying to bind the results that I got back to a dataGrid and half expected it to bind neatly like they do in Flash. I realized eventualy that I need to do some paring with the resultset in order to get the results into the right format. The original post was as I was working through it and didn’t have a well formulated question but a sense of initial confusion.
    Thanks though.

    Posted by diamondtearz | May 14, 2006, 6:14 pm
  5. I’ve posted a few tutorials on how to get AMFPHP working with Flex. You can find them on my blog, including a sample of working with Gallery and AMFPHP.

    Some of these articles have also been posted on labs.adobe.com. If you have questions about this, please feel free to contact me.

    Mike

    Posted by Mike Potter | May 16, 2006, 10:07 am

Post a comment