beautypg.com

Chapter 3: actionspanel object, Actionspanel.getclassforobject() – Adobe Extending Flash Professional CS5 User Manual

Page 46

background image

24

Last updated 5/2/2011

Chapter 3: actionsPanel object

Availability
Flash CS3 Professional.

Description
The actionsPanel object, which represents the currently displayed Actions panel, is a property of the flash object (see

fl.actionsPanel

).

Method summary
The following methods can be used with the actionsPanel object:

actionsPanel.getClassForObject()

Availability
Flash CS3 Professional.

Usage

actionsPanel.getClassForObject(ASvariableName)

Parameters

ASvariableName

A string that represents the name of an ActionScript variable.

Returns
A string that represents the class of which ASvariableName is a member.

Description
Method; returns the class of the specified variable, which must be defined in the currently displayed Actions panel. In
addition, the cursor or selected text in the Actions panel must be positioned after the variable definition.

Method

Description

actionsPanel.getClassForObject()

Returns the class of a specified variable.

actionsPanel.getScriptAssistMode()

Specifies whether Script Assist mode is enabled.

actionsPanel.getSelectedText()

Returns the text that is currently selected in the Actions panel.

actionsPanel.getText()

Returns the text in the Actions panel.

actionsPanel.hasSelection()

Specifies whether any text is currently selected in the Actions panel.

actionsPanel.replaceSelectedText()

Replaces the currently selected text with specified text.

actionsPanel.setScriptAssistMode()

Enables or disables Script Assist mode.

actionsPanel.setSelection()

Selects a specified set of characters in the Actions panel.

actionsPanel.setText()

Clears any text in the Actions panel and then adds specified text.

This manual is related to the following products: