beautypg.com

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

Page 432

background image

410

Last updated 5/2/2011

Chapter 39: 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 13. 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).

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.

swfPanel.setFocus()

” on

page

413

Sets the keyboard focus to the specified SWF panel.

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.

This manual is related to the following products: