New video tutorial on using ZendAMF

I just finished uploading a new tutorial that shows you the basics of using the new ZendAMF framework. As you’ll see, the workflow is almost identical to the workflow for AMFPHP so it shouldn’t take long to make the switch. In this example I show how to retrieve database content and read it into Flash using the NetConnection class. Check it out at http://www.gotoandlearn.com.

Lee

Comments

  1. October 30th, 2008 | 2:54 am

    Thank you, Lee!

  2. Alejandro
    October 30th, 2008 | 3:11 am

    So useful as always Lee!

  3. lee
    October 30th, 2008 | 3:21 am

    Is the ZendAMF as stable as AMFPHP 1.9 beta2?

  4. lee
    October 30th, 2008 | 3:32 am

    Why does Zend use a custom bootstrap, instead of a default gateway?

  5. October 30th, 2008 | 3:55 am

    What benefit in ZendAMF?I usually use amfphp/Browser to test my Data?ZendAMF it seem don’t have Browser Page as amfphp

  6. October 30th, 2008 | 3:57 am

    Still Thank you for your share ^^

  7. October 30th, 2008 | 4:48 am

    Thanks for sharing this :p

  8. flashzone
    October 30th, 2008 | 5:43 am

    Thanks Lee!

  9. October 30th, 2008 | 5:59 am

    [...] New video tutorial on using ZendAMF [...]

  10. Willem
    October 30th, 2008 | 6:15 am

    This is so useful and very easy the way you explain. Thank you so much.

  11. October 30th, 2008 | 6:42 am

    Great Lee, but if you just finished uploading, you’re really out of bed early (’round 6am), or you never went to bed or left you computer running? btw check out the link in my name. (to a serge jespers blog post)

  12. October 30th, 2008 | 6:42 am

    Hi,
    Thank you for video-tutorial :)
    http://zwolu.wordpress.com/2008/10/29/flex-php-i-zend_amf-czyli-first-blood/
    Here is my proposal Flex and Zend_Framework connection (Polish)

  13. October 30th, 2008 | 7:04 am

    Lee,

    You are awesome. I have been waiting for this. Hopefully you’ll expand on this tutorial.

    David

  14. October 30th, 2008 | 7:25 am

    Thank you very much Lee!

  15. October 30th, 2008 | 8:32 am

    Thanks Lee!

  16. October 30th, 2008 | 8:51 am

    This is great. Thanks.

  17. kev
    October 30th, 2008 | 3:35 pm

    Nice work as usual.

    I’d like to make one request for this and future tutes:

    When you say “don’t do this in production”, could you please expand on best practice?

    re> Service Browser for Zend:

    “wadearnold October 22nd, 2008 12:54 pm

    @John I hope to bring the same service browser from AMFPHP into a universal remoting project.”

    http://wadearnold.com/blog/?p=61

    cheers

  18. October 30th, 2008 | 10:02 pm

    I have used AMFPHP, and loved the browser, the all in 1 folder experience and the fact you dont have to register your php class files, just drop them in the services folder. On first glance Zend seems to do none of these things. Only the fact that it is supported and AMFPHP is not seems to be the advantage? Love the tutorials and blog Lee!

  19. November 1st, 2008 | 4:52 pm

    Once again, great video, Lee. I found it as soon I finished uploading my video tutorial on the same topic! Yours is much better, and very appreciated.
    Anyway, for those like me who don’t like setting up the barebones every time, I made a Zend_Amf code generator in AIR, which you can get at http://flexandair.com.
    Thanks for your continuing excellence on gotoandlearn, Lee. You’re the man.

  20. Stephen
    November 1st, 2008 | 5:08 pm

    Lee, do you know if ZendAMF can take advantage of the native AMF Extension for PHP. AMFPHP is much faster if you install the AMF Extension. I just wondered if ZendAMF would benefit from it also, and if not how much of a speed difference there might be in using AMFPHP with the extension, and ZendAMF without it.

    http://www.teslacore.it/wiki/index.php?title=AMFEXT
    http://pecl.php.net/package/amfext

  21. November 3rd, 2008 | 3:37 am

    Hi Lee,

    any chance of saving the fla file as a CS3 document so that I can view it in my legacy software :)

    thanks

    Fintan

  22. Vic
    November 3rd, 2008 | 4:09 am

    Hello Lee,

    do you know which direction Adobe is going to take with the licences and software. Because you know have ZendStudio, Flex Builder Eclipse plugin and Flex Builder. Those are alle seperate licenses. The first two are a great toolset now, but what with all those people who bought Flex Builder? Is there a switch possible? Will Adobe & Zend launch one software package, like a Visual Adobe Studio? Hope to hear some more, before getting those licenses :)

    grtz

  23. Gorancito
    November 21st, 2008 | 9:28 am

    Thanks pal.

  24. December 17th, 2008 | 10:54 am

    Hi Lee,

    I thought it was worth adding this link:

    http://www.sitepoint.com/forums/showthread.php?t=537152

    (relating to ini_set, Windows and Linux paths)

    …for PHP beginners like myself

  25. Jay
    December 31st, 2008 | 12:30 am

    Hi Lee,

    I Hope you wanna made Video tutorial for Flex and ZendAMF accessing to the dataGrid. it would be Great.

    Cheers

  26. jeff
    February 7th, 2009 | 11:03 pm

    Any chance to show code that would get it to work once uploaded to the web? (the code supplied does not work)

  27. patrick
    February 15th, 2009 | 12:31 pm

    as usual great tutorial, thanks!

    i’ve been trying to set up the same thing within the zend framework mvc structure and for some reason , it doesn’t work :( I had to create a server.php file in my root folder (/public) as opposed to a ServerController.php in the /application/controllers folder . The latter works fine with Flex but with Flash, the same structure returns an error!

    gratefully!

  28. Mike Connors
    March 2nd, 2009 | 10:49 am

    Hi, Can anyone helo me with this tutorial? I am usin WAMP and set up a directory called “public”. My bootstrap file for works fine as i get the “AMF Zend Endpoint” message. I have stared at the flash code and that appears okay..I keep getting the “bad call” error message which Lee pointed out means there maybe an error in the call. I looked at my class file (Tutorials.php) and can’t seem to figure out where i am going wrong. I am not sure if it is in the access to the dbase. I am running localhost, with root and root to connect, the database name is “sardbase” and the table is “test”..How can i check to see if i am even connecting to the dbase as I think that may be the issue.

  29. fred
    March 19th, 2009 | 4:46 pm

    thanks very much for all the excellent gotoandLearn tut’s.

    any chance on a follow up for this one sometime ?
    Like zendAMF and Flash SEO ?

    Would be very much appreciated !!

  30. Lauren
    March 19th, 2009 | 9:51 pm

    Hi,

    I have a big problem that is possibly to do with using version 1.7.7 of the framework otherwise surely lots of other people would get this error. I load the files to my server as described but when I try to open the bootstrap file in firefox it opens a download prompt! It’s just a php file, everything is as it should be so why would it prompt me so? help!

  31. March 21st, 2009 | 2:59 pm

    I’m facing a similar problem when passing more than a parameter to a php function. I get a bad call error message. I had tried everything and nothing is working. This is frustrating.

    A short tutorial passing variables to php would be more than great :) .

    Anyways you rock man!

  32. BVX
    March 28th, 2009 | 9:36 am

    Thank you for another great tutorial!

    I would very much appreciate a tutorial/blog post on securing ZendAMF, just like the one you did for AMFPHP.

    Keep it coming!
    bvx

  33. George F
    April 4th, 2009 | 8:27 am

    hello all

    does anyone no how to using this method send a predefined variable from flash and to php to be used in the sql query

    thanx

    appreciate any and all help

  34. kurt
    April 6th, 2009 | 2:49 pm

    Very nice tut. If ZendAMF is the coming thing (also according to Adobe) a deeper exlanation of class mapping (AS3 and server-sided) might be really helpful. I guess a lot of people even never heard about it.

  35. leef
    August 5th, 2009 | 1:25 pm

    I’m seeing drastically slow return times to Flash with ZendAMF, whereas the same script with AMFPHP is fast.

  36. November 13th, 2009 | 8:09 pm

    I just posted a ZendAMF Service browser at http://www.zamfbrowser.org. There’s a demo online and a step through in the documentation page. Hope everyone finds it useful! You can leave me questions at http://www.almerblanklabs.com/2009/11/zamfbrowser-1-0-zendamf-service-browser/#more-1265,

Leave a reply