22
Introduction
Sample Trace Bitmap panel
A set of files named TraceBitmap.fla and TraceBitmap.swf are located in the ExtendingFlash/
TraceBitmapPanel folder (see
“Sample implementations” on page 19
). 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 Configuration/WindowSWF folder (see
“Saving
JSFL files” on page 7
).
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” on page 19
). For more information about building
DLLs, see
Chapter 3, “C-Level Extensibility,” on page 533
.
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...