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. This 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. Conversely, 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. This 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 |