Below is a list of scripts for flash that I use to automate common tasks. Scripts should be put in the following directory (on Windows XP that is):
C:\Documents and Settings\User Name\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Commands
They will be accessible from the menu bar in Flash under Commands. The xml file for some scripts is also needed because some scripts utilise a dialog box defined with XUL.
- CopyGenerator - generates copies of selected items in the library. JSFL, XML.
- Renamer - renames all selected library items to a given name followed by a number. JSFL, XML.
- SetBaseClass - sets the base class for all selected library items. JSFL.
- ItemsToFrames - takes all selected library items and places them sequentially on separate frames in a new clip. JSFL.
- LinkageToClip - unchecks all library items for export and puts them on the second frame of a new movieclip which has a stop command on the first frame (this is part of a method for creating an internal preloader in a flash movie). JSFL.
- ItemsToCharacter - Creates a new clip and distributes selected library items to keyframes at ten frame intervals. Labels are generated on a layer above each keyframe. Also issues a stop frame at the beginning of the clip on it's own layer. I usually create state-machine animations for games, this script speeds up that process. JSFL.
- AdjustItems - batch adjusts x, y, rotation and scale properties of all selected library items on all frames of each library item. The script ignores locked layers, but one line can be modified to alter this. I was going to put in a checkbox, but it seems that Flash CS3 is ignoring the XUL markup for a selected checkbox and no one has ever bothered implementing one. JSFL, XML.