AARON SMITH’S CODE ENDEAVOR

Archive for the 'JSFL' Category

JSFL: Lock Selected Layers

This handy JSFL locks all selected layers.

Enjoy.

No comments

JSFL: Un-guide All Layers

This handy JSFL un-guide’s all guide layers.

Enjoy.

No comments

JSFL: Guide All Layers

This handy JSFL guide’s all layers, except mask layers.

Enjoy.

1 comment

JSFL: Enable Smoothing an All Bitmaps

This handy JSFL updates all bitmaps in the library to allow smoothing.

Enjoy.

No comments

JSFL: Unlock All Layers

This handy JSFL unlocks all layers.

Enjoy.

No comments

JSFL: Organize Library

This handy JSFL organizes your library. It creates eight top level folders in the library (movieclips, bitmaps, sounds, graphics, buttons, fonts, videos and components), and moves all clips into those folders. If won’t alter any sub folders of any of those top level folders. So it’s a really quick way to at least keep clips in a folder based off of the item type.

Enjoy.

No comments

JSFL Proxy Class - Alleviate MMExecute Pain

Those of you who have written JSFL know the pain of MMExecute - with having to wrap quotes, inside of double quotes, which could have more quotes or slashes. I’ve been writing a number of WindowSWF tools - which use a lot of JSFL. This JSFL Proxy class will help alleviate all the work.

The JSFLProxy class alleviates calling JSFL scripts, or methods inside of a JSFL script. It also adds support for escaping parameters, unescaping the responses, and allowing you to specify a return type from JSFL - which, amazingly (or not so) enough, allows me to cast the JSFL response before it’s returned to you.

Here’s a demonstration:

var jp:JSFLProxy=JSFLProxy.gi();
var functionLib:String="file://XXX/myFunctionLibrary.jsfl";
var dir:String = jp.runScript(functionLib,{method:"getSomeDirectory",params:[theDirectory],responseWasEscaped:true});
var dirContents:Array = jp.runScript(functionLib,{method:"getDirContents",escapeParams:true,responseFormat:"array",parameters:[dir],responseWasEscaped:true});

There are a few other methods available, and support for a few other response formats. JSFLProxy is available in Guttershark. Here’s a direct link to the JSFLProxy documentation.

No comments

JSFL: Delete All Graphic Symbols

This handy JSFL will delete all graphic symbols in the library. I always stay away from graphic symbols, and I don’t like that graphic symbols are auto-created after importing png’s. So you can run this after you’ve imported a bunch of png’s to delete all graphics.

Enjoy.

No comments

JSFL: Lock all masks

This handy JSFL locks all mask layers.

Enjoy.

No comments

JSFL: Selection to 0,0

This handy JSFL moves all selected items on the stage to 0,0.

Enjoy.

No comments

Next Page »