Adobe Extending Flash Professional CS4 Manual de usuario Pagina 36

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 560
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 35
14
EXTENDING FLASH CS4 PROFESSIONAL
Introduction
Sample PolyStar tool
A sample JavaScript API script named PolyStar.jsfl is located in the ExtendingFlash/PolyStar folder (see “Sample
implementations” above).
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.
Sample Trace Bitmap panel
A set of files named TraceBitmap.fla and TraceBitmap.swf are located in the ExtendingFlash/TraceBitmapPanel folder
(see “Sample implementations” above). These files 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 (see
Saving JSFL files” on page 2). For example, on Windows XP, the folder is in boot drive\Documents and
Settings\user\Local Settings\Application Data\Adobe\Flash CS4\language\Configuration\WindowSWF.
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 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.
Sample DLL
A sample DLL implementation is located in the ExtendingFlash/dllSampleComputeSum folder (see “Sample
implementations” above). For more information about building DLLs, see
C-Level Extensibility” on page 522.
Vista de pagina 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 559 560

Comentarios a estos manuales

Sin comentarios