hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  Flash button as Flex icon  Flex form by email  Hello Remoting with AS3  AS3 Saving data from Flash  AS3 Loading data into Flash  Fire Effect  Contact form  Dragable buttons  Hello World with openamf  Loading helper classes  Upload with Flash 8  Transitions effects  Snapshot with Flash 8  Hello World Remoting AS2  Flash AS2 Remoting Connector  Saving data from Flash  Loading data into Flash  FlashCom & Remoting login  Cell Renderer API  Editing a table using remoting components  Flash MX2004 web service classes  Browsing a catalog  amfphp Documentation  Hello World Remoting  Online Store with AMFPHP  Flash clients for Web Services  Web Service Walk Though with NuSoap  Popup windows in flash with javascript  Installing Apache/PHP  MoreOver News Feeds  Load Edit Save Text Files via CGI  Save Movie Clip Postion via PHP and MySQL
Current Page (1) Next Page >>  View Article Example >> 1 | 2 | 3 | 4 | 5 | 6

1. Amfphp installation

Amfphp library installation is really easy: you just need to put the library in a server readable folder and load gateway.php when you build the NetConnection to it. Remember you need a PHP enabled Web server to run this (download link provided in previous page, see requirements) The library have three main folders, one for the Flex browser to inspect services, the core one with all the heavy stuff and the services folder where you put your classes. In the main folders there are the gateways, you will use gateway.php and probably globals.php if you need to setup a database or VO folders, we will do review this on the second example.

Here's how the amfphp folders looks like:

While json and xmlrpc are other gateways, .htaccess could be used if your server doesn´t display errors and you can't access the php.ini file to change the error level. Once you have upload the library, open gateway.php to see if you get a successful message:

The next step is to check if the new flex browser works for you (remember you need Flash Player 9), point to browser folder:


I have many services because I use remoting all the time, but you probably will have only the amfphp folder with the DiscoveryService, that allow to inspect services in a remote server.

Ok, now we know we have amfphp library installed and running. Let's move to our first example.

 

Current Page (1) Next Page >> 1 | 2 | 3 | 4 | 5 | 6