Flex Builder, PDT, VMware = AMFPHP hotness

February 13th, 2008

I am going to Kauai for a week and of course I had to have everything work without an internet connection. I also am about a month behind on some stuff for The Essential Guide to Open Source Flash Development book so I figure a beach, mojito, and a laptop can get a lot done. I installed VMWare Server on my laptop and got a copy of Gentoo PHP Web Development Appliance for VMware. Mapped my eclipse work space to the samba share of the home directory of the web servers document root and now I have Flex Builder 3 and PDT to do development against a real linux server. In the one hour I have this configured I have realized that I have probably wasted at least a month of my life dragging files out of my workspace and uploading them to a development server. Now I have a local debugger, code complete, svn, and all the other goodness eclipse offers for AS3 and PHP and if at any time I want to see what it is going to look like on the server I just refresh my browser which is pointing at the virtual server. If anyone else spends the majority of there switching between client server development get this setup going. You will never know how you lived without it. Let me know if you need help! Change makes the world a better place.

AMFPHP, ActionScript 3, Flash Platform

Service class path for AMFPHP

January 27th, 2008

I am frequently asked how to call services that are in folders inside of the amfphp/services/ directory. To do this you just use dot notation on NetConnection.call method. If you download the amfphp examples I am going to use the HelloWorld example and place it into a subfolder.

On the server make a directory inside of of your amfphp/services/ folder:

amfphp/services/sub/

Upload or move the HelloWorld.php file into your new directory.

Open flash and open the Main.as file that goes with the example. Go to line 36 and change the call to have the folder name then a dot.

connection.call("sub.HelloWorld.say", responder, params);

You are now making calls to a sub directory inside your services folder!

AMFPHP, Flash Platform

Change PHPSESSID in amfphp

January 20th, 2008

I update the session section in the documentation to explain how to change the session ID of your application. This is very useful when you have several flash files running in different environments such as browser, air, or a frame that will receive a different sessionid for each connection. Use flashes localconnection class to send the master sessionid and tell all your other connections to update there id.

Session Example

Hope that this helps!

Wade

AMFPHP, Flash Platform

Populate a Flash CS3 DataGrid with AMFPHP

January 20th, 2008

I have added a tutorial for using AMFPHP to populate a Flash Cs3 Datagrid to the examples section. I will be adding several additional examples in the near future. If there is something your really confused about in this example let me know.

Update: Flash CS3 DataGrid with AMFPHP & MySQL

This post was created in response to the feed about getting the data from something other than an array on the server.

AMFPHP, Flash Platform

Block StandAlone Player in AMFPHP

January 20th, 2008

I have updated the AMFPHP to block the flash/flex ide player from being able to access the amfphp services if the gateway.php is configured for a production server.

AMFPHP download page

I just updated a release in svn and also put a new download up on sourceforge which enables this feature if the gateway.php is set to production will disable the StandAlone Player.

Files changed:
amfphp/core/amf/app/Gateway.php

Lines added 136-137 amfphp/gateway.php

Lines added 348-360 amfphp/core/amf/app/Gateway.php

AMFPHP, Flash Platform