AMF::Perl - Flash Remoting in Perl and Python

To use AMF::Perl, download it and install in the usual way (perl Makefile.PL; make; make install).

To build/export .swf files with "Flash Remoting" you need to install Flash Remoting MX Components (free download). This will install the files "NetServices.as" and "NetDebug.as" that are used in the ActionScript.


Sample code that uses Flash Remoting

(See also examples that are distributed with the module).
Read this if you want to send and receive strings in non-English encodings.

Client code:

 

Server code, option A - service registration.


Use in simple applications.
PerlPython
File cpu.py: File cpuUsage.py:

Server code, option B - limited service discovery.


Use in complex applications.

Part 1.  The gateway script.



PerlPython

Part 2.  Sample class in the registered directory.

PerlPython