beautypg.com

Actionspanel.setscriptassistmode() – Adobe Extending Flash Professional CS5 User Manual

Page 50

background image

28

EXTENDING FLASH PROFESSIONAL

actionsPanel object

Last updated 5/2/2011

Description
Method; replaces the currently selected text with the text specified in replacementText. If replacementText contains
more characters than the selected text, any characters following the selected text now follow replacementText; that is,
they are not overwritten.

Example
The following example replaces currently selected text in the Actions panel.

if (fl.actionsPanel.hasSelection()) {

fl.actionsPanel.replaceSelectedText("// © 2006 Adobe Inc.");

}

See also

actionsPanel.getSelectedText()

,

actionsPanel.hasSelection()

,

actionsPanel.setSelection()

,

actionsPanel.setText()

actionsPanel.setScriptAssistMode()

Availability
Flash CS3 Professional.

Usage

actionsPanel.setScriptAssistMode(bScriptAssist)

Parameters

bScriptAssist

A Boolean value that specifies whether to enable or disable Script Assist mode.

Returns
A Boolean value that specifies whether Script Assist mode was enabled or disabled successfully.

Description
Method; enables or disables Script Assist mode.

Example
The following example toggles the state of Script Assist mode.

fl.trace(fl.actionsPanel.getScriptAssistMode());

if (fl.actionsPanel.getScriptAssistMode()){

fl.actionsPanel.setScriptAssistMode(false);

}

else {

fl.actionsPanel.setScriptAssistMode(true);

}

fl.trace(fl.actionsPanel.getScriptAssistMode());

See also

actionsPanel.getScriptAssistMode()

This manual is related to the following products: