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). 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. 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:

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 summary

You can use the following properties with the swfPanel object:

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.