This script will print the location of your Configuration directory in the Output panel. To locate your Configuration directory, you can check these common locations, or simply create and run a new JSFL script with the following code: The first step is to locate the Configuration directory for your installation of Flash. This will allow you to execute your script using the Commands menu (and optionally, a keyboard shortcut). To save your JSFL script for later use in Flash, you’ll want to save your script to the Configuration/Commands directory. This script can now be modified to do something more useful, like get the document size and draw a rectangle to match the dimensions of the document, or looped to create several rectangles at once. Note that a rectangle has been drawn on the stage in the same place and with the same dimensions as the one that was drawn with the rectangle tool. Hit the Run Script button within the script editor and return to the Flash document.Paste the stored command into the newly opened script, Edit > Paste.When the New Document dialog appears, choose Flash JavaScript File and click OK. Drag the undo/redo slider to the very top of the History Panel to revert the document to its opened state.With the addNewRectangle command still selected, hit Copy Steps button in the bottom right of the History Panel.This will create a rectangle with the same dimensions as the original rectangle. Now select the original addNewRectangle command and hit the Replay button. Drag the slider down to the deleteSelection command.This slider functions like an undo and redo. Note that sliding the arrow undid the deletion of the rectangle. Grab the slider on the left side of the History Panel and drag it up so that it’s parallel to the original rectangle command.Select the rectangle on stage and delete it. Here you can change the display format and tooltip display.Ĭhange the display to show JavaScript in Panel (if it’s not selected already). Click on the fly-out menu on the top-right of the History panel.Notice that this action is recorded in the History Panel. Select the Rectangle Tool and draw a rectangle on the stage.Open the History Panel: Window > Other Panels > History.Follow the steps below to create a JSFL command using the History Panel. ADOBE FLASH CS6 TUTORIAL BASIC ANIMATION BONE TOOL CODEThis panel also has the capacity to show the JSFL code necessary to duplicate each (enabled) user action. The History Panel functions as an advanced undo/redo. In this tutorial, you’ll start visually by copying user actions from the History Panel. The file extension for a JSFL script is always. You create a new JSFL script by choosing File > New and selecting Flash JavaScript File in the New Document dialog box. Additionally, JSFL allows you to script a few tasks that users cannot normally perform (at least not easily or quickly). Thus, JSFL can accomplish nearly everything that a user can within Flash, such as create layers, create objects, select frames, manipulate Library items, open files, and save files. ADOBE FLASH CS6 TUTORIAL BASIC ANIMATION BONE TOOL PROFESSIONALConversely, JSFL code is executed on the spot and is used to control Flash Professional itself. The latter is compiled into a SWF, and that SWF can play in the ubiquitous Flash Player. It should be noted that JSFL and ActionScript are distinct languages with distinct purposes. So, if you have any familiarity with JavaScript, or ActionScript, you will find this knowledge useful in writing JSFL. Like Actionscript, JavaScript is based on the ECMAScript standard. JSFL is a variant of JavaScript specifically written to interact with the Flash authoring environment. There is a special scripting language that allows you to control Flash, and it is known as JSFL. ADOBE FLASH CS6 TUTORIAL BASIC ANIMATION BONE TOOL HOW TOThis series of tutorials will show you how to create your own extensions for Flash. You can extend Flash to include new features and automation in the form of Commands, Panels, and Tools. The ability to create extensions is one of my favorite features in Flash Pro. I no longer create or support Animate/Flash extensions, but these articles are preserved here as a reference for anyone to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |