AS3 Module framework

Categories:Extensibility
Typically AS3/JSFL communication is done using MMExecute(), passing strings of JSFL to the JavaScript environment from an ActionScript SWF Panel.

Overview

The AS3 Module Framework is an ActionScript 3 framework of class files and UI components, designed to enable you to quickly publish front-end SWF panels which are all set up to communicate with your JSFL back end.

This page will be completed after the full API has been documented.

Notes

Typically AS3/JSFL communication is done using MMExecute(), passing strings of JSFL to the JavaScript environment from an ActionScript SWF Panel. In traditional JSFL this can get fairly complicated fairly quickly, however, by targeting only the module's public API, and not writing any JSFL in the ActionScript environment, you can simplify your code greatly:

Typically, developers tend to use long, concatenated strings of JSFL inside their ActionScript, which is then passed to the JSFL environment via MMExecute(), but this makes for fragile and hard-to-maintain code.

// AS3 class code
call('someMethod', [1, 2, 3])

// executed JSFL
xjsfl.modules.modulename.someMethod(1, 2, 3);

Next steps

2 Responses to AS3 Module framework

  1. anthony K says:

    Please ! we need a doc ;)

  2. Dave Stewart says:

    Hey Anthony,

    Yeah, sorry this isn’t documented yet! The whole framework is about to go into Beta 2, and part of that involves getting all the docs up to date with all the new changes (there’s been loads!).

    As soon as that’s done, I will be on this the AS3 framework, which will be pretty exciting for tools developers.

    If you look at the Sample module, that should get you going with the basics of loading data and communicating with JSFL. It’s been a while since I looked at the AS3 code, and in the most part I’m happy with it, but my worry is that I may have abstracted it *too* much.

    Let me know how you get on.