The Effect Generator

FXML Language

AS3Wrapper

Forum

Blog

Contact

FX Logo

The Effect Generator

Flash in a flash

AS3Wrapper

AS3Wrapper imports Flash libraries into Javascript.

Simple Example

Javascript code with AS3Wrapper

with(playerInstance)
with(flash.display)
with(flash.net){  
	var image = new Loader();
	image.load(new URLRequest(url));
	addChild(image);
}

Equivalent ActionScript 3.0 code

import flash.display.*;
import flash.net.*;
... {
	var image:Loader = new Loader();
	image.load(new URLRequest(url));
	addChild(image);
}

Live Examples

Downloads

AS3Wrapper with examples: AS3Wrapper.zip (300 kB)

Additional fonts are also available.

Coding Differences

There are a few programming differences you have to adhere to:

Running Locally

The Flash player won't let you run javascript in a page that's being hosted on the local file system. To get around this for development, you can:

The Effect Generator  - The FXML Language  - Forum  - Blog  - Contact