Table of Contents

Remoting for Flash

The remoting package from ActionStep is designed to be identical to Macromedia’s implementation in the Flash Remoting Components. For a comparism between both implementations, see RPC.

This package is available separately from the main source tree.

You only need to load a 18.9kb SWF library to use it, and for fast compile times, a set of intrinsics are included, instead of the full source.

Download

You can download the remoting distribution, independent of the ActionStep framework here.

Building the Distribution

To build the distribution, you need Apache Ant, asigen and the ActionStep source tree.

The following targets will have to be executed (in order):

Target Description
exec-asigen Creates a directoy containing intrinsics
remoting-lib Compiles the SWF file ANSRemotingLib.swf
create-zip Optional; creates/updates ANSRemoting.zip

Using the distribution

You can compile applications against the intrinsics in the folder dist-asi. Simply add the intrinsics folder as a classpath to the compiler. An example of the compiler command would be:

mtasc -cp 'dist-asi' ...

For an example of how this is done, look at the remoting-dist target. It compiles a test file, ASTestRemotingDist.as against intrinsics, and loads ANSRemotingLib.swf.

Use this workflow if your application does not use other packages from ActionStep.

If you do, then you shouldn’t be here. Just compile against the source tree.