![]() The Extensibility Layer makes it possible to write macros that will automate common tasks, write tools that manipulate objects on the stage, create panels that contain graphical user interfaces, write timeline effects that animate objects on the stage and much more. |
Introducing JSFL
To take advantage of these new possibilities, you need to be familiar with a new scripting language, JSFL (for JavaScript Flash), that lets you talk to the Flash MX 2004 IDE and tell it what to do.
For those of you that have seen snippets of JSFL floating around, you may have noticed a striking familiarity between that and ActionScript or JavaScript. Well spotted! The good news is that Macromedia based JSFL on the Netscape JavaScript API (JSAPI), which means that neither ActionScript coders nor those who have dabbled with JavaScript will have to learn a whole new programming language. The syntax is exactly the same, dot syntax, and ActionScript will still work with the same data types; Objects, Arrays, Strings, Numbers, and Functions.
As this article series is aimed towards Flash developers, I will write with the assumption that most, if not all of you have good knowledge of ActionScript.
Part 1: Understanding the JSFL DOM The key to learning to write your own Flash extensions is to understand the Flash DOM and thus the first article in this series will explain the DOM in detail. Part 2: From ActionScript to JSFL: Using Classes and Scripts Part 3: New Tools: Using History and Flash Panels for Faster Development Part 4: Solving UI Problems with XUL |