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: Fenrigar Mutaur
Country: United Arab Emirates
Language: English (Spanish)
Genre: Video
Published (Last): 11 September 2013
Pages: 468
PDF File Size: 6.80 Mb
ePub File Size: 8.61 Mb
ISBN: 262-6-39129-113-6
Downloads: 15344
Price: Free* [*Free Regsitration Required]
Uploader: Brarg

Here we create the object describing the call and use the JSON stringify function. Now Yarden Refaeli from Rigel Games is sharing with us his experience in creating a Flash Facebook application using another technique. How do I call function from class in php file using Flash as3? So for our example, you should create a class called YourService, in a file called YourService.

Failed do anyone have a solution? The objects used are slightly different. Just so you know, there is a page for you that contains the information you were missing, I think: You have a web page, a tablet app and a smartphone app, and they all want to access some shared data, for example a tutoril of tutotial.

Creation of a Flash Facebook application using AMFPHP – Emanuele Feronato

A few weeks ago, I decided to make my first facebook flash game, Snaker. 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. I suggest you read https: All the methods of this class are exposed as methods of the service.


Developers can focus on features unique to their projects, regardless of the communication between client and server. MovieClip ; import fl. Applications no longer run only on desktops, but must also be available on a variety of smartphones and tablets.

Amfphp – Silex Labs

So, you need a function that is called when the call returns:. If you go to your service browser you should now see it in the available services. So, you need a function that is called when the call returns: I take a long time researching, relearning this stuff… Hope it helps others lazy boys like me, trying the new tricks for old dogs….

Personal tools Log in. Documentation Source code Stackoverflow amfphp Bug report.

Your first Project using Amfphp

In it you can put the following: Now all we need to do is to call this function from our Actionscript 3 code, like this:. Without Amfphp, there would be one code for the web page, another for the smartphone app, and maybe another for the tablet app. Restart your Flash editor after installing the components.

For debugging services use plenty of trace statements in Flash. For Flex section above there is a misspelling on line 17 of services-config.

Silex Labs community Tweets Tweets sur silexlabs. What if you need to do this with multiple protocols? This case is fairly simple, but what if you have complex data, not just strings?

In it you can put the following:. Please use the forums for technical questions. I got internal error.

Silex Labs community Tweets Tweets sur amrphp. Your script would quickly get pretty complex and unmanageable. As for Flash, you need a function that is called when the result of the call is available:.


Feel free to send me feedback to yard[at]gmail[dot]com! With Amfphp, there would only be one code!

An Example of mysql databse would be very welcome! After I made it to the end, I decided to write a tutorial about the best approach to build flash-facebook game. AMFPHP is a great open-source tool that allow flash to communicate with the server-side in a few lines of code! If you would like to try AMF with Javascript, there are some available afmphpso give them a try.

Views Page Discussion View source History. Start your client development with a fully functional client project using the Client Generator.

I am trying the code in flex but my endpoint 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 source code which is the best way to become familiar with the moodle api.

I just double checked, places like http: Test your services as you develop them with the Service Browser. If necessary more info can be found on the amfphp site here.

You can grab them here though in the meantime:

Author: admin