AMFPHP Beta 2 (UPDATED – Beta 2 now supports Services override Note: If you’re reading an old tutorial, it will tell you that you should see a. instructions you can find the files created in this tutorial here. Unzip them in lib/ amfphp/ and they should. After I made it to the end, I decided to write a tutorial about the best approach to build AMFPHP is a great open-source tool that allow flash to.
||16 October 2007
|PDF File Size:
|ePub File Size:
||Free* [*Free Regsitration Required]
The NetConnection debugger doesn’t seem to work reliably and the service browser is not necessary amfphp has one built in which will work better for you.
Your first Project using Amfphp – Silex Labs
So, you need a function that is called when the call returns:.
So, you need a function that is called when the call returns: MovieClip ; import fl. You can grab them here though in the meantime: This depends on which client-side amfpph you are using, so choose the appropriate part below.
Create a new fla called User. Once you can return data from Amfphp to your client, try to get some information from a database.
Your first Project using Amfphp
The latest version amgphp 2. And edit the following on the stage:. I just double checked, places like http: Start your client development with a fully functional client project using the Client Generator.
The objects used are slightly different. Your class should look like this: Applications no longer run only on desktops, but must also be available on a variety of smartphones and tablets.
First, we need to save our meta user-data about every user in OUR database, and for this we need to use a server-side language in this tutorial I will talk about Mysql, but every other database or server-side language is fine. Failed do anyone have a solution?
Amfphp – Silex Labs
If you want to develop applications and services for ActionScript 3. NetConnection ; private var responder: For debugging services ajfphp plenty of trace statements in Flash. I believe that this line is incorrect in the example: Personal tools Log in. If there is a Moodle sesssion, the sesssion info is available to your service code in just the same way that it is in in a php script that generates html.
Documentation Source code Stackoverflow amfphp Bug report.
A few weeks ago, I decided to make my first facebook flash game, Snaker. Feel free to send me feedback to yard[at]gmail[dot]com! An Example of mysql databse would be very welcome! It parses the request, loads the requested service, calls it, and returns the answer accordingly. I take a long time researching, relearning this stuff… Hope it helps others lazy boys like me, trying the new tricks for old dogs….
Silex Labs community Tweets Tweets sur silexlabs. In it you can put the following: AMFPHP is a great open-source tool that allow flash to communicate with the server-side in a few lines of code! Post there and I will gladly answer you. Sign in to your account Account Login Username.
So for our example, you should create a class called YourService, in a file called YourService. Now, flash needs to communicate with the server-side POST requests for example.
I recommend the use of eclipse for editing your code or vi, you can find info about using both of these editors on Moodle docs and you will find info about browsing the Moodle source code which is the best way to become familiar with the moodle api. Now all we need to do is to call this function from our Actionscript 3 code, like this:.
Views Page Discussion View source History. Amfphp is aimed at developers. If you go to your service browser you should now see it in the available services. As for Flash, you need a function that is called when the result of the call is available:.
This case is fairly simple, but what if you have complex data, not just strings? You can edit the contents of the text box and press ‘Save’ to save the new value. Navigation Main page Recent changes Moodle Docs 3. User preference names are listed in the list box and when you click on them then the value is displayed in the text box to the right.
Please use the forums for technical questions. The standard way of doing things with a Flex project involves creating an XML file containing information about your server and using it in the compiler options. Retrieved from ” https: Hi, using flex 4. Test your services as you develop them with the Service Browser. When you call the remote function, you can pass as many parameters to PHP as the function require.
The information contained on the page amfpjp NOT be seen as relevant or reliable. All you need tutoriwl do, is of course, write the server-side functions, and then you can call it from your SWF, with Actionscript 3.