hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  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
 Read Full Documentation >> Untitled Document

Flash Communication and Flash Remoting login

By: Jorge Solis

Goals and requirements

If you're not confident with Remoting (amfphp) neither FlashCom, then perhaps is not a good idea to begin with this.

Our goal is to build a login system to a FlashCom application querying a database to match user/pass. Since FlashCom doesn't have directly access to databases, we will use it in conjunction with Flash Remoting (amfphp) to aces it. If you don't have the FlashCom server, download the free development edition from Macromedia site >>. You need also to have a PHP enabled server, MySQL and amfphp >>. If you don't know what's amfphp is, we suggest to read first: Hello World Remoting >>, an introduction to Remoting trough amfphp, that also explains how to setup the environment. Before starting, download the example files >> (this file keeps the folder structure)

IMPORTANT: If neccesary, modify the path to your gateway in main.asc. Modify also that gateway.php and inc_sql.php to match your needs.

Here´s our working movie, just a simple login. Use Username: test and Password: test