>> Setting up Mac OS X Panther as a web server
with Apache, PHP, MYSQL, PHPMySQL & AMFPHP

Setting up Apache on Mac OS X

Installing MySQL on Mac OS X

Installing AMFPHP (Fleash Remoting) on Mac OS X

Installing phpMyAdmin to manage MySQL database on Mac OS X

A Guide to Setting up VNC on Mac OS X Panther
"Working on your computer remotely"

This is my first time of posting some of my learning, so if you see anything at all that could be improved please e-mail your comments to: contact@TotalMediaSource.com

Thank you, Daryl Urig

>> Installing AMFPHP on Mac OS X

Well finally getting around to what I really wanted. Free Flash remoting. So I am picking AMFPHP, and am going to the Macomedia web site: http://www.macromedia.com/devnet/mx/flash/articles/amfphp.html

He talks about LAMP (Linux, Apache, MySQL, and PHP), I guess I must be MAMP, being a Mac user.

Side Note: WHAT IS AMFPHP?

AMF stands for Action Message Format

Flash Remoting MX is an application server gateway that provides a network communications channel between Flash applications and remote services. Remote services consist of application server technologies, such as a JavaBean, Macromedia ColdFusion component or page, ASP.NET page, or web service. Service functions represent a reference to a specific remote service from ActionScript in a Flash movie.

When compared to other techniques for connecting Flash applications to external data providers, such as HTTP functions like getURL and loadVariables and XML functions like XMLSocket, Flash Remoting MX provides the following advantages:

* Ease of use Flash Remoting MX offers automatic data type conversion from native remote service code, such as Java, CFML, and C#, to ActionScript and back again. Also, Flash Remoting MX automatically performs logging, debugging, and security integration.
* Performance Flash Remoting MX serializes messages between Flash applications and remote services using the Action Message Format (AMF). AMF is a binary format modeled on the Simple Object Access Protocol (SOAP) format.
* Extensibility Flash Remoting MX is designed to integrate with established application design patterns and best practices to build well-designed Flash applications.

You use the NetServices ActionScript functions to connect to application server technologies and web services. In addition, the NetDebug and DataGlue ActionScript functions help debug Flash applications and display record sets in Flash User Interface (UI) Components.

Copied from Macromedia.com web site

Downloaded the Flash Component, Double clicked on the icon that was unstuffed by Stuffit Deluxe and automatically installed the component. Pretty simple.
     
Downloaded the Macromedia project files to play with. Went to AMFPHP.org to download the .5 version he recommended and could only find the .9 version, so I downloaded it.

Basically, unzip the file and place the “flashServices” folder into the root folder, which is the  “Documents” folder. The same place your index.php file is located. I color coded files to make it easy to add them and remove them if needed.



Testing out the Flash remoting

To do this I used the files that came with AMFPHP. I started with the basic files. Dragged them out of the basic folder to my root folder, next to my index.php file. Opened up  each flash file with MX 2004 Pro and resaved on the .swf file.

Then went to my browser window and opened my favorite to my root folder, and after the URL added:

/browse.php

Everything seemed to work, no error messages, I guess it is working.

Also checked out out   from another computer on my network and it was working fine with it also. Cool.

Daryl Urig
Total Media Source
contact@TotalMediaSource.com

NEXT >>


 

       

 

 


Created and Hosted by TotalMediaSource.com ©2003 all rights reserved