ActionScriptâ¢, which lets you create scripts that execute at run time in. Adobe® ... you create scripts that run in the authoring environment (that is, while a user has ... Several JavaScript API samples are available in a folder named Samples/.
Extending Flash As a user of Adobe® Flash® CS3 Professional, you may be familiar with ActionScript™, which lets you create scripts that execute at run time in Adobe® Flash® Player. The Flash JavaScript application programming interface (JavaScript API) is a complementary programming tool that lets you create scripts that run in the authoring environment (that is, while a user has the Flash program open). These scripts can be used to help streamline the authoring process. For example, you can write scripts to automate repetitive tasks, add custom tools to the Tools panel, or add timeline effects. Several JavaScript API samples are available in a folder named Samples/ ExtendingFlash within the ZIP file located at www.adobe.com/go/ learn_fl_samples. This document contains a brief overview of each sample. WHERE TO STORE SAMPLE JSFL FILES Some of the examples use JSFL files. The folder in which to store the sample JSFL files for running them on your computer is: ■
Windows® 2000 or Windows® XP: boot drive\Documents and Settings\user\Local Settings\Application Data\Adobe\Flash CS3\language\Configuration\Commands
■
Mac OS® X: Macintosh HD/Users/userName/Library/Application Support/Adobe/ Flash CS3/language/Configuration/Commands
39
SAMPLES DESCRIBED IN THIS DOCUMENT ■
Shape command
■
Get and set filters command
■
PolyStar tool
■
Trace Bitmap panel
■
Sample DLL
Shape command A sample JavaScript API script named Shape.jsfl is located in the ExtendingFlash/Shape folder. This script displays information about the contours of a selected shape in the Output panel. To install and run the Shape script: 1.
Copy the Shape.jsfl file to the Configuration/Commands folder (see WHERE TO STORE SAMPLE JSFL FILES near the beginning of this document).
2.
In a Flash document (FLA file), select a shape object.
3.
Select Commands > Shape to run the script.
Get and set filters command A sample JavaScript API script named filtersGetSet.jsfl is located in the ExtendingFlash/filtersGetSet folder. This script adds filters to a selected object and displays information about the filters being added in the Output panel. To install and run the filtersGetSet script:
40
Extending Flash
1.
Copy the filtersGetSet.jsfl file to the Configuration/Commands folder (see WHERE TO STORE SAMPLE JSFL FILES near the beginning of this document).
2.
In a Flash document (FLA file), select a text, movie clip, or button object.
3.
Select Commands > filtersGetSet to run the script.
PolyStar tool A sample JavaScript API script named PolyStar.jsfl is located in the ExtendingFlash/PolyStar folder. This script provides an example of adding a tool to the Tools panel using the JavaScript API. 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 Configuration/Tools directory to learn more about how to build your own tool.
Trace Bitmap panel A set of files named TraceBitmap.fla and TraceBitmap.swf are located in the ExtendingFlash/TraceBitmapPanel folder. These files comprise an advanced example to illustrate how to design and build a panel to control the functions of Flash. They also show the use of the MMExecute() function to call JavaScript commands from an ActionScript script. To run the TraceBitmap sample: 1.
If Flash is running, exit from Flash.
2.
Copy the TraceBitmap.swf file to the WindowSWF folder, which is a subdirectory of the Configuration folder at the same level as the Commands folder (see WHERE TO STORE SAMPLE JSFL FILES near the beginning of this document).
3.
Start Flash.
4.
Create or open a Flash document (FLA file), and import a bitmap or JPEG image into the file. You can use the flower.jpg file provided in the ExtendingFlash/ TraceBitmapPanel folder. or another image of your choice.
5.
With the imported image selected, select Window > Other Panels > TraceBitmap.
6.
Click Submit. The image is converted into a group of shapes.
Trace Bitmap panel
41
Sample DLL Advanced users can use the C-level extensibility mechanism to implement Flash extensibility files using a combination of JavaScript and custom C code. You define functions using C, bundle them in a dynamic linked library (DLL) or a shared library, save the library in the appropriate directory, and then call the functions from JavaScript using the JavaScript API. Sample DLL implementations are in the ExtendingFlash/ dllSampleComputeSum folder. For information about installing and using this sample, see “Sample DLL implementation” in Chapter 3, “C-Level Extensibility,” in Extending Flash.
seron 2 pourvus aider à Éire de vitre repas un véritable sixés. /LIVRAISON\ Vºns H |-. | A DOMICILE | , , . N h |. /'épicerie/ine à Crans-J. RUE LU PRADO 9 ° 3963 ...
Document Title ..... ation, I/O8 ~ I/O15 are not used to input command & address. ... does not float to high-z condition when the chip is deselected or when outputs ...
Il y a quelque chose sur le pare-brise. J'ai conduit aussi vite que possible avec cette pluie. 24. Juho Hänninen (FIN) / Tomi Tuominen (FIN) (Ford Fiesta RS WRC).
3 août 2013 - Daniel Sordo (ESP) / Carlos Del Barrio (ESP) (Citroën DS3 WRC). It's a little bit the same as the others. It's very fast, better than before with no ...
2 août 2013 - Karl Kruuda (EST) / Martin Järveoja (EST) (Ford Fiesta R5). It's been a very interesting day. I only had the first stage without any problems. 82.
2 août 2013 - On est juste en traction avant, je ne vois rien de l'extérieur. Ce n'est pas le ... Daniel Sordo (ESP) / Carlos Del Barrio (ESP) (Citroën DS3 WRC).
Juan Carlos Alonso (ARG) / Juan Pablo Monasterolo (ARG) (Mitsubishi Lancer ... Martin Hudec (CZE) / Jakub Kotál (CZE) (Mitsubishi Lancer Evolution X).
Juha Salo (FIN) / Marko Salminen (FIN) (Subaru Impreza WRX Sti R4). Everything is working nicely. It's ok, I'm trying to push hard. 85. Juha Salo (FIN) / Marko ...
2 août 2013 - Rengas meni rikki pätkän puolivälissä, vaikka ei osuttu mihinkään. 85. Juha Salo (FIN) / Marko Salminen (FIN) (Subaru Impreza WRX Sti R4).
1 août 2013 - Daniel Sordo (ESP) / Carlos Del Barrio (ESP) (Citroën DS3 WRC). It's very tricky the stage, but it's ok. It was slippery but a nice stage. 3. Daniel ...
3 août 2013 - Daniel Sordo (ESP) / Carlos Del Barrio (ESP) (Citroën DS3 WRC). It was ok. I was a little bit better maybe. We changed the differential so it is a ...
1 août 2013 - Auto luistelee hieman. 10. Kris Meeke (GBR) / Chris Pattersson (GBR) (Citroën DS3 WRC). This was a beautiful wide Finland road, no verticals.
Bilan Flash avec Patrimoine en Ligne. Patrimoine en ligne - CAVD Zac St Martin â 36, impasse François Gernelle - BP 105 - 84120 Pertuis. Pour plus amples ...
2 août 2013 - Martin Prokop (CZE) / Michal Ernst (CZE) (Ford Fiesta RS WRC). We have no power from the engine - the temperature is 140 C [stopped 2km ...
3 août 2013 - We jumped too far and had heavy landing. We broke something on the steering. 85. Juha Salo (FIN) / Marko Salminen (FIN) (Subaru Impreza ...
2 août 2013 - Per-Gunnar Andersson (SWE) / Emil Axelsson (SWE) (Ford Fiesta RS WRC). It's working quite well and there is still more to do with the car to ...
demande, les véhicules électriques pourront réinjecter cette électricité ... véhicules électriques, ne cesse de s'agrandir. ... die musicale retraçant l'histoire.