November 19, 2011
by Chris
0 comments
After last weeks news from Adobe I’m happy I held back on upgrading from Flash CS3. Flash though is still a valuable tool in the development process allowing the quick prototyping of game mechanics.
What I’ve ended up doing on more than one occasion however is prototyping something in Flash, then finding I need to get the information out of flash into a form I can use elsewhere e.g for iOS development. Flash comes with an extension language called JSFL (JavaScript Flash) that allows scripted manipulation of the authoring environment, Adobe in their infinite wisdom decided that producing decent documentation for this killer feature was not worth the effort. Fortunately Keith Peters and Todd Yard filled the void with the book ‘Extending Flash MX 2004‘ it’s still a valid book today.
In a recent project I needed to run through an .fla used to generate a swc and export all the items in the library that had a linkageIdentifier as separate PNG images. It took longer than it should have as I made all the mistakes I’d made on previous JSFL projects, so this time I commented the code and jotted down the issues for future reference. Another source of useful information is Writing a JSFL component for Flash AS3 where there is a link to a comprehensive API specification for JSFL in pdf format.
The following JSFL scripts have been tested with Flash CS3 on Lion (OSX)
Continue Reading →