29 Replies Latest reply: May 29, 2007 9:16 AM by jedders RSS

    Flash Remoting

    29FIVE_Designs
      I have found the AMFPHP Remoting for Flash to be a nice alternate to Flash Remoting, especially because it's free! AMFPHP is extremely easy to use and is a nice tool that can be packaged in any product to be shipped. The really nice thing about it is that the server that it is to be run off of does not require any special software (just PHP and database software like MySQL). Therefore, it can run on pretty much any web hosting server! The web address of AMFPHP is http://amfphp.org.

      29FIVE Designs
      http://29fivedesigns.com
        • 1. Re: Flash Remoting
          baskar_ibiz
          hi

          i tried hi

          i am having flash professionl 8 and PHP 5.0,apache 2.2 server, i tried flash remoting using AMFPHP 1.9 beta version but no values received from php and my flash output window is not showing any error.


          i have kept the amfphp folder in htdocs which contains many folders like core,browser,services

          i have kept the php file in services folder.

          but its not working.

          can u plz help.

          thanks

          bye.
          • 2. Flash Remoting
            29FIVE_Designs Community Member
            If you are not receiving any values from your AMFPHP browser ( http://yoururl.com/amfphp/browser), that would suggest there is a problem with your PHP script. This browser should show you the PHP error, as it is not passed on to Flash. Only true or false is passed on to Flash (unless you are sending a record set).

            29FIVE Designs
            http://29fivedesigns.com
            • 3. Re: Flash Remoting
              baskar_ibiz Community Member
              hi

              thanks for your reply.

              how can i know that the connection has established or not with HelloWorld.php

              var service = new Service(gatewayUrl, null, "HelloWorld");
              var pc:PendingCall = service.say(sMessage);
              pc.responder = new RelayResponder(this, "handleSay", null);

              can i trace anything with this code that connection established or not.

              thanks

              bye
              • 4. Re: Flash Remoting
                29FIVE_Designs Community Member
                If your AMFPHP browser is working correctly, then your linkage between Flash and AMFPHP is wrong, as you are guessing. If you copied the Action Script code from your AMFPHP browser then it should work. Here is my first couple of lines of Action Script (I am using AMFPHP Version 1.2.5):

                import mx.remoting.*;
                import mx.rpc.*;
                import mx.utils.Delegate;
                import mx.remoting.debug.NetDebug;

                //Change the gateway URL as needed
                var gatewayUrl:String = " http://your_url/amfphp/gateway.php";

                NetDebug.initialize();
                service = new Service(gatewayUrl, null, "services");


                And then it goes into my functions. If you are still having trouble, I would revert to AMFPHP Version 1.2.5 because I know for a fact that it works. I would always be hesitant about using and open source beta.

                29FIVE Designs
                http://29fivedesigns.com
                • 5. Re: Flash Remoting
                  baskar_ibiz Community Member
                  hi

                  flash remoting with c++ (developed using unix )is possible ?

                  if not is there anyother way to call a c++ function from actionscript.

                  thanks
                  • 6. Re: Flash Remoting
                    29FIVE_Designs Community Member
                    I honestly couldn't tell you. I don't know C++.

                    Sorry,

                    29FIVE Designs
                    • 7. Re: Flash Remoting
                      gsmeanspro
                      Hi everybody,

                      I've just recently hear about amfphp and want to give a try, but http://amfphp.org is dead. Anybody know something about the website? Is there any place where I can download amfphp and get the support during testing?

                      Thanks in advance.
                      • 8. Re: Flash Remoting
                        29FIVE_Designs Community Member
                        I was able to access AMFPHP. Maybe they were down for a while... As I said above, I would recommend using AMFPHP Version 1.2.5. Also, I found some tutorials on how to get AMFPHP all set up, working, and talking with Flash. Here is the site: AMFPHP Tutorials. It is actually a site for an entire shopping system using AMFPHP, but there are great tutorials aside from that... If you are still unable to get to AMFPHP, let me know and I can provide an alternate download for you.

                        29FIVE Designs
                        • 9. Re: Flash Remoting
                          gsmeanspro Community Member
                          Thanks for attempt to help 29FIVE Designs. I still can't access to AMFPHP.org, however I managed to get the package. Just wanted to look at official website and get some support there if need.
                          • 10. Re: Flash Remoting
                            japanmoran
                            Anyone know the status of the remoting classes for Flash CS3?
                            • 11. Re: Flash Remoting
                              cayennecode Community Member
                              Would love to know whether we'll be seeing an RDBMSResolver or alternative class introduced for CS3. How else to deserialize AMF packets?
                              • 12. Re: Flash Remoting
                                C-Rock Community Member
                                Apparently no one thought they'd need remoting for cs3. I just wasted $1500 on CS3, remoting is all my company does. I can't even open files with as 2.0 in CS3 with flash remoting. I tried copying the folders to the new Adobe directory and no luck.

                                Coldfusion is 10x faster than PHP is why people use flash remoting with coldfusion. :)

                                Any work arounds yet or release date for remoting 9/as 3.0?
                                • 13. Re: Flash Remoting
                                  cayennecode Community Member
                                  I haven't tried it yet, but on second thought I'm guessing one could just set a datagrid dataProvider to the NetConnection result, and then work off of the datagrid, but you'd still be missing the deltaPackets updates....aw oh well. I can't find any info from Adobe regarding anything about data components / dataclasses for AS3/CS3

                                  On another note, you can use AS2 remoting classes, but you have to add them to your Classes directory.

                                  Check it out:

                                  http://blog.vixiom.com/2007/04/17/actionscript-20-flash-remoting-with-flash-cs3/
                                  • 14. Re: Flash Remoting
                                    yeeep Community Member
                                    Come on Adobe, we need a NetConnection Debugger for Flash CS3. I can't make the move to CS3 without support for remoting. I use AMFPHP exclusively for remoting projects.
                                    • 15. Re: Flash Remoting
                                      Dave_Towers Community Member
                                      I too use Remoting extensively and feel I've just wasted the money to upgrade from 2004 pro to CS3. With the usual level of Actionscript support until Colin Moock brings out his book, I can't be confident enough to begin any new projects using the CS3 authoring environment.
                                      Also at times the netConnection Debugger has been a lifeline to me, where is it? A different thread questions Adobes committment to Remoting and I have to re-iterate those concerns. I've never used the data components to resolve returned data as I originally learnt to parse the data with AS, a process I've continued, so I'm a bit in the dark as to what else is missing. It seems that this new Authoring tool has been ill considered and rushed out assuming all will embrace AS3 immediately... it can never be that way.
                                      I wish I could get my money back!
                                      • 16. Re: Flash Remoting
                                        L4Development
                                        I to am moving over to CS3 and am extremely disappointed that flash remoting is not built into it... I mean really adobe!!! why leave it out??? in a hurry to make a release date? What about all those using adobe flash remoting products? are they out of luck as many of us amfphp users are?

                                        I have copied over my classes, it things compile correctly, but nothing actually works right on some of my past projects... I really think adobe should have a representative release something on this topic, otherwise a lot of developers are wasting their money on the move.

                                        Large projects require remoting for the most part!!!

                                        argh...

                                        by the way, I think I know this 29fivedesigns character... he has a cool flash remoting helpdesk, to bad he can't use adobe CS3!!!!!

                                        Josh Jones
                                        www.levelfourstfront.com
                                        • 17. Re: Flash Remoting
                                          yeeep Community Member
                                          *Everybody* who reads this and is wondering where the hell remoting is in CS3 (or you just want an answer to Adobes commitment to remoting) post in here. The reality is Flash 8 + AS 2.0 is *the* current tech. Developers are really starting to push it now because of player penetration. Getting people to move to CS3 + AS 3.0 is gonna be hard if there is to be no remoting. And this is the kind of thing that will put me off developing full sites in Flash in the future. Dropping things people have invested so much time in learning/developing, who have ongoing projects in, with no word of it's future. Flex doesn't fit the bill. Neither does ColdFusion. We need Flash Remoting!
                                          • 18. Re: Flash Remoting
                                            LanceS
                                            Adobe, WTF, I spent a ton of $$ to ugrade to CS3 and get the developer tool box that doesn't even contain KTML which should have been the biggest piece of the toolbox in my and evedently a lot of other peoples opinions. Now I find out the CS3 doesn't work with remoting. Can you work a bit harder to find a way to screw the deveoplers out there. I have been using CF for over 10 years and over those years paying a bu?? load of cash to the various companies (Allaire, Macromedia, Adobe) to keep the tools up and feel like I get screwed for being loyal. Everywhere I read that there are a lot of developers out there that feel the same way. Designers don't seem to bothered and I can see why but come on this is BS to a big part of the market share. I go nothing against PHP but when Adobe puts out a piece of developer software like the Developer's tool box and half the tools are designed for PHP and not your own damn product ColdFusion don't you think you might be shooting yourself in the foot. make it work for both.

                                            Now I shelf Flash CS3 because of its lack of remoting support. I will think long and hard before spending anymore $$ on a "new and better" (lol) tool from Adobe!
                                            • 19. Re: Flash Remoting
                                              Bringhurst
                                              Originally posted by: levelfourdesigns
                                              I too am moving over to CS3 and am extremely disappointed that flash remoting is not built into it... I mean really adobe!!! why leave it out??? in a hurry to make a release date? What about all those using adobe flash remoting products? are they out of luck as many of us amfphp users are?

                                              I have copied over my classes, it things compile correctly, but nothing actually works right on some of my past projects... I really think adobe should have a representative release something on this topic, otherwise a lot of developers are wasting their money on the move.

                                              Large projects require remoting for the most part!!!

                                              argh...

                                              __________________________________________________________________________________

                                              Ditto.

                                              James Whitcraft
                                              www.flashstorefronts.com
                                              • 20. Re: Flash Remoting
                                                cayennecode Community Member
                                                Remoting works just fine in AS3 guys....

                                                ...checkout your NetConnection class....

                                                But yeah, the DataSet class, RDBMSResolver class haven't been refactored for AS3. Making your life of easily walking through the remoting results more difficult, as well as listening to changes in the data model. Have fun building it !!! or like me stick with AS2 for your data driven needs.
                                                • 21. Re: Flash Remoting
                                                  yeeep Community Member
                                                  Check the first news post on the top right here:

                                                  http://www.joshstrike.com/index3.html

                                                  I hope Adobe sorts us out.
                                                  • 22. Re: Flash Remoting
                                                    L4Development
                                                    I know there are a lot of people out there probably already saying this, but the fact is, remoting does not work like it should for a new version of flash here, or at a minimum, there is very little "adobe" documentation on getting to work correctly with CS3 as we are all use to.

                                                    I did get my extensive flash remoting system to compile correctly in CS3, obviously still using ActionScript 2.0 though. And it was just a matter of copying the mx classes folder.

                                                    C:\Documents and Settings\username\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx

                                                    to

                                                    C:\Documents and Settings\username\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Classes\mx

                                                    I was able to comile an extensive AMFPHP project, and also use ServiceCapture to track packets. I always hated the netconnection debugger they had anyway, but if you wanted that, my understanding is just view the netconnection SWF file and it works independently as well.

                                                    I hope that adobe does release some type of package of remoting tools like they have in the past however. We all know AS3 has built in flash remoting capabilities, but where is the other tools then? where are the "adobe" examples?

                                                    hope this helps someone though...

                                                    Josh Jones
                                                    www.levelfourstorefront.com
                                                    • 23. Re: Flash Remoting
                                                      yeeep Community Member
                                                      Josh, what version of AMFPHP did you use? And did you change it for the CS3 compile?
                                                      • 24. Re: Flash Remoting
                                                        L4Development
                                                        I am using the 1.2.5 version of amfphp, the one you can download right now. I didn't change anything to make it work, it just needed the classes. I just copied the folders from above and it worked for me.

                                                        You could also just open your file, go to publish settings, and point your flash actionscript classes to that folder as well.

                                                        I just don't understand why there is not a small remoting installation program from adobe though to do this for us AS2 folks...

                                                        Josh Jones
                                                        www.levelfourstorefront.com
                                                        • 25. Re: Flash Remoting
                                                          gsmeanspro Community Member
                                                          Hi everybody,

                                                          Can anyone tell me what happened with www.amfphp.org? The old site seems dead and all I see now is page fulled with Google ads. Any ideas, info?
                                                          • 26. Re: Flash Remoting
                                                            29FIVE_Designs Community Member
                                                            Wow it really is gone this time. Hopefully it's just temporary.

                                                            29FIVE Designs - Providing Helpdesk Support Software And Website Design
                                                            imagine... create... innovate
                                                            • 27. Re: Flash Remoting
                                                              L4Development
                                                              I believe amfphp's name just expired and there was some discussion else where for some others who were willing to take it up. You can still find the files at sourceforge.net though.

                                                              Josh Jones
                                                              www.levelfourstorefront.com
                                                              • 28. Re: Flash Remoting
                                                                btlewis
                                                                Check this article out.

                                                                http://www.oscartrelles.com/archives/as3_flash_remoting_example

                                                                Seems easy enough.
                                                                • 29. Re: Flash Remoting
                                                                  jedders Community Member
                                                                  For those of you looking to move the Flash 8 Remoting Components and NetConnection Debugger into Flash CS3. I have posted on another thread the steps on how to set it up. This will allow you to work just as you did in Flash 8 and AS2 in Flash CS3 IDE. Otherwise, the remoting for Flash CS3 and AS3 is now built in.

                                                                  You can view the steps here.
                                                                  http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=250&threadid =1264156&enterthread=y