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.

Author: Nanos Gazragore
Country: Guinea-Bissau
Language: English (Spanish)
Genre: Sex
Published (Last): 14 June 2015
Pages: 493
PDF File Size: 18.85 Mb
ePub File Size: 7.52 Mb
ISBN: 195-1-18055-525-3
Downloads: 9277
Price: Free* [*Free Regsitration Required]
Uploader: Mausho

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. If you mafphp to develop applications and services for ActionScript 3. The result paramter is an object that the server returned. Just so you know, there is a page for you that contains the information you were missing, I think: All the methods of this class are exposed as methods of the service.

Now onto the code itself. For debugging services use plenty of trace statements in Flash.

Your first Project using Amfphp

This installs the necessary code libraries for Flash to communicate with a Flash remoting server. As for Flash, you need a function that is called when the result of the call is available: Amfphp works as an entry point for your client.

Restart your Flash editor after installing the components. Now, flash needs to communicate with the server-side POST requests for example. Test your server performance with the Profiler. Your class amphp look like this: Silex Labs community Tweets Tweets sur silexlabs. You can grab them here though in the meantime: Retrieved from ” https: For those who are impatient and don’t want to follow these step by step instructions you can find the files created in this tutorial here.


Creation of a Flash Facebook application using AMFPHP – Emanuele Feronato

So, you need a function that is called when the call returns: Applications no longer run only on desktops, but must also be available on a variety of smartphones and tablets. Thank you for your comment.

Here we create the object describing the call and use the JSON stringify function. Be careful what values you save if this is a real production server logged in to a real users account.

Try it to make sure everything works well on your server. You have a web page, a tablet app and a smartphone app, and tutprial all want to access some shared data, for example a list of emails. If you go to your service browser you should now see it in the available services.

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. Create a new fla called User. With Amfphp, there would only be one code! An Example of mysql databse would be very welcome! It is becoming increasingly complex to amphp with the diversity of technologies used in these terminals.

So for our example, you should create a class called YourService, in a file called YourService. Developers can focus on features unique to their projects, regardless of the communication between client and server. I just double checked, places like http: Without Amfphp, there would be one code for the web page, another for the smartphone app, and maybe another for the tablet app.

The information contained on the page should NOT be seen as relevant or reliable. Now Yarden Refaeli from Rigel Games is sharing with us his experience in creating a Flash Facebook application using another technique.


You can either do it by hand or use a library to do it for you. Now lets say we want to do all the server-side jobs, with PHP and not flash: MovieClip ; import fl. Silex Labs community Amfpbp Tweets sur silexlabs. Your script would quickly get pretty complex and unmanageable. However if you fit one tutoriao the titles we just mentioned, you probably work with a developer.

NetConnection ; import flash. When you call the remote function, you can pass as many parameters to PHP as the function require. If necessary more info can be found on the amfphp site here.

This list of emails is in the cloud, and you have a PHP developer whose job it is to make this list available to the apps and the webpage. You can edit the contents of the text box and press ‘Save’ to save the new value. I tutorizl trying the code in flex but my amfphpp uri is different it is http: 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 tutoorial code which is the best way to become familiar with the moodle api.

Views Page Discussion View source History. Personal tools Log in. Where can I get Flash as3 Pizza example? I suggest you read https: 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.