# LocalConnection ActionScript Class

This class implements an LocalConnection object. This is basically a Flash version of the a standard RPC (Remote Procedure Call). This is used to have multiple flash movies exchange data without converting it to XML first. This class uses shared memory to transfer the data in the AMF format.

There is some documentation of the AMF format online, but not much. There appear to be a few free AMF projects, but none that I could find have any code. So I'm stuck developing a C/C++ based AMF library to transfer data.

## The Methods of the Class

close()

- Close the current open connection, and remove the shared memory segment.

connect(const char *)

- This establishes a connection point so other movies can remotely execute methods in this movie. The shared memory segment is created in a form that can be attached to by a client. The code that actually remotely executes a method has yet to be written for Gnash.

domain()

- This returns the network domain for this connection. The default is to return "localhost".

send()

- Execute a method of the local object. Data is encoded in the AMF format.

## The Event Handlers of the LocalConnection Class

allowDomain

- Called for every method being executed.

allowInsecureDomain

- Called when a request is received over the network.

onStatus

- Returns the status of the method that was executed.

## LocalConnection Class Conformance

Class Name | Conformance
close() | This method is implemented.
connect() | This method is implemented.
domain() | This method is implemented.
send() | This method is unimplemented.
allowDomain | This property is unimplemented.
allowInsecureDomain | This property is unimplemented.
onStatus | This property is unimplemented.