beautypg.com

Swfpanel.path, Swfpanel.setfocus() – Adobe Extending Flash Professional CS5 User Manual

Page 435

background image

413

EXTENDING FLASH PROFESSIONAL

swfPanel object

Last updated 5/2/2011

fl.trace(fl.swfPanels[0].name);

See also

swfPanel.path

,

fl.swfPanels

swfPanel.path

Availability
Flash CS4 Professional.

Usage

swfPanel.path

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

Example
The following code displays the path of the SWF file used in the first registered Window SWF panel in the Output
panel:

fl.trace(fl.swfPanels[0].path);

See also

swfPanel.name

,

fl.swfPanels

swfPanel.setFocus()

Availability
Flash CS5.5 Professional.

Usage

swfPanel.setFocus()

Description
Method: Sets the keyboard focus to the specified SWF panel.

Example
The following code sets the focus to the SWF panel named “Project”:

Please do the followings steps before running this command:

1 Undock the Project panel, so it is a floating panel.

2 Open the Create File dialog box from the Project panel and then click the Stage.

3 Press the Tab key a few times to ensure the Project panel does not have focus.

This manual is related to the following products: