|Published (Last):||14 May 2010|
|PDF File Size:||4.79 Mb|
|ePub File Size:||11.78 Mb|
|Price:||Free* [*Free Regsitration Required]|
The ability to create extensions is one of my favorite features in Flash Pro. You can extend Flash to include new features and automation in the form of Commands, Panels, and Tools.
This series of tutorials will show you how to create your own extensions for Flash. 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.
Additionally, JSFL allows you to script a few tasks that users cannot normally perform at least not easily or quickly. The file extension for a JSFL script is always.
This panel also has the capacity to show the JSFL code necessary to duplicate each enabled user action. This will allow you to execute your script using the Commands menu and optionally, a keyboard shortcut. The first step is to locate the Configuration directory for your installation of Flash. To locate your Configuration directory, you can check these common locationsor simply create and run a new JSFL script with the following code:.
Note that each installation of Flash has its own Configuration directory. The next tutorial in this series shows you how to use JSFL to manipulate other parts of your Flash document.
Your email address will not be published.
Creating Flash Extensions — Part 1: Introduction
Notify me of follow-up comments by email. Notify me of new posts by email. Download a quick, but detailed guide from industry experts Keith Gilbert and Justin Putney that will help you make the best decisions for your publications. Creating Flash Extensions — Part 1: Open a new Flash file. jsfo
Open the History Panel: Select the Rectangle Tool and draw a rectangle on the stage. Notice that this action is recorded in the History Panel.
Click on the fly-out menu on the top-right of the History panel. Here you can change the display format and tooltip display. Change to the Selection tool. Select the rectangle on stage and delete it.
10 Minutes with Flash: Creating an External Text File with JSFL
Note that sliding the arrow undid tutorjal deletion of the rectangle. This slider functions like an undo and redo. Drag the slider down to the deleteSelection command.
Tutotial select the original addNewRectangle command and hit the Replay button. This will create a rectangle with the same dimensions as the original rectangle. Open a new file: Hit the Run Script button within the script editor and return to the Flash document.
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. This script can now be modified to do something more useful, like get the document size and draw a tutorixl to match the dimensions of the document, or looped to create several rectangles at once.
Locating your configuration jsfll To locate your Configuration directory, you can check these common locationsor simply create and run a new JSFL script with the following code: Introduction Creating Flash Extensions — Pt. Check your email to confirm your subscription and get your reward.
There was an error submitting your subscription. We use this field to detect spam bots. If you fill this in, you will be tktorial as a spammer.
Leave a Reply Cancel reply Your email address will not be published.