Chapter 41: swfpanel object, Swfpanel.call(), Swfpanel object – Adobe Extending Flash Professional CS4 User Manual

Page 436

Advertising
background image

414

Chapter 41: swfPanel object

Availability
Flash CS4 Professional.

Description
The swfPanel object represents a Window SWF panel. Window SWF panels are SWF files that implement applications
you can run from the Flash authoring environment; they are available from the Window > Other Panels menu. By
default, Window SWF panels are stored in a subfolder 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. A sample Window SWF panel is available; see

Sample Trace Bitmap panel

” on page 14. The array of registered Window SWF panels is stored in the

fl.swfPanels

property.

Method summary
You can use the following method with the swfPanel object:

Property summary
You can use the following properties with the swfPanel object:

swfPanel.call()

Availability
Flash CS4 Professional.

Usage

swfPanel.call(request)

Parameters

request

Parameters to pass to the function (see “Description” and “Example” below).

Returns
Either

null

or a string that is returned by the function call. The function result could be an empty string.

Method

Description

swfPanel.call()

Works in conjunction with the ActionScript

ExternalInterface.addCallback()

and

MMExecute()

methods to communicate with the SWF panel from the authoring

environment.

Property

Description

swfPanel.name

Read-only; a string that represents the name of the specified Window SWF panel.

swfPanel.path

Read-only; a string that represents the path to the SWF file used in the specified Window SWF
panel.

Advertising