Sample get and set filters command
A sample JavaScript API script named filtersGetSet.jsfl is located in the ExtendingFlash/
filtersGetSet folder (see
selected object and displays information about the filters being added in the Output panel.
To install and run the filtersGetSet script:
1.
Copy the filtersGetSet.jsfl file to the Configuration/Commands folder (see
files" on page
7).
2.
In a Flash document (FLA file), select a text, movie clip, or button object.
3.
Select Commands > filtersGetSet to run the script.
Sample PolyStar tool
A sample JavaScript API script named PolyStar.jsfl is located in the ExtendingFlash/PolyStar
folder (see
"Sample implementations" on page
The PolyStar.jsfl replicates the PolyStar tool that can be found in the Flash Tools panel. The
script demonstrates how to build the PolyStar tool using the JavaScript API, and includes
detailed comments describing what the code is doing. Read this file to gain a better
understanding of how the JavaScript API can be used. You should also read the PolyStar.xml
file in the Tools directory to learn more about how to build your own tool.
Flash includes an earlier (obfuscated) version of the PolyStar.jsfl script that you must remove
in order to use the sample PolyStar.jsfl file.
20
Introduction
"Sample implementations" on page
19). This script adds filters to a
19).
"Saving JSFL
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers