Actionspanel.setscriptassistmode() – Adobe Extending Flash Professional CS4 User Manual
Page 51
29
EXTENDING FLASH CS4 PROFESSIONAL
actionsPanel object
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.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