Fluorine Projector

Fluorine Projector is an open source SWF2Exe Framework based upon Fluorine Remoting Gateway, Macromedia Flash® and Microsoft .NET Framework.

Introduction

Fluorine uses a custom channel sink with .NET remoting. It implements a custom sink class and a custom sink provider, the later is registered in the .NET remoting infrastructure (in the linked chain of sinks).

...

To build the Swf copy the "Package.swc" in the components folder then put in your Flash library the "Utils" component. The first frame of your flash should run the following code:

import mx.remoting.NetServices;

import com.TheSilentGroup.Fluorine.FEnvironment;

import com.TheSilentGroup.Fluorine.FService;

FEnvironment.init(this);

To call your custom dll use FService.call (or call anything)

FService.call(".Net type fullname", "MethodName", responderObject, parameters)

If the responderObject has a function with a name of the form MethodName_Result, Flash Remoting MX returns the result for the function to that method.

(For errors MethodName_Fault is called with the status information.)

Debug

You can debug your flash movie directly from Flash and your custom dlls in VisualStudio by running the FluorineServerTestConsole console application before you test your flash movie (reference to custom dlls must be added to FluorineServerTestConsole).

Build the executable

Add the Swf file to the application as embedded resource (see FluorineDemo). Create a FluorineServer instance then call PublishFluorineServer. Specify to the Flash ActiveX control the Url

"http://localhost:{0}/{1}?port={0}", _fluorineServer.Port, "swf file name";

License

This files are distributed under the terms of the GNU Lesser general public license 2.1. By simply downloading them, you are agreeing to be bound by the terms of the license.

Download

Library and Flash/Flex demo (v9) download