mike chambers | about

Flash / JavaScript Integration Kit (with Open License)

Tuesday, June 14, 2005

Well, as many noticed last week from the Flash Platform whitepaper, we have released a beta of the Flash / JavaScript Integration kit. The kit allows you to call functions from Flash to JavaScript and JavaScript to Flash, all while working cross browser, and supporting passing complex data types.

Here is a list of the data types that the kit supports:

Here is a simple code example that show a call to a JavaScript function from within Flash:

import com.macromedia.javascript.JavaScriptProxy;

var proxy:JavaScriptProxy = new JavaScriptProxy();
proxy.call("javaScriptMethodName", "arg1", new Object());

We are starting to use the kit at MXNA, and you can view an example here (right click the chart to view the source).

You can find the latest info on the kit, as well as download the most current release from here.

The kit has been live since last week, but we haven’t posted about it until now because we wanted to finalize the details on the licensing. Well, we finally worked out all of the details, and I am really excited to announce that the project is being licensed under an open license (based on the Apache 1.1 Software license). You can view a copy of the license here.

Since the project is now an open project, we have moved it from our internal servers over to osflash.org.

Here are the main links:

The main project site is hosted on the osflash wiki, so anyone can add to the docs, samples, etc…

Anyways, expect a lot more info in the coming days and weeks. We have been getting some bug submissions, and are planning on doing a new release soon.

Also, I want to give a big thanks to Aral Balkan, for setting up osflash, but also helping us work out all of the details and helping make the project being open source possible.

twitter github flickr behance