Actionspanel.setselection(), Actionspanel.settext() – Adobe Extending Flash Professional CS5 User Manual
Page 51
29
EXTENDING FLASH PROFESSIONAL
actionsPanel object
Last updated 5/2/2011
actionsPanel.setSelection()
Availability
Flash CS3 Professional.
Usage
actionsPanel.setSelection(startIndex, numberOfChars)
Parameters
startIndex
A zero-based integer that specifies the first character to be selected.
numberOfChars
An integer that specifies how many characters to select.
Returns
A Boolean value that specifies whether the requested characters can be selected (
true
) or not (
false
).
Description
Method; selects a specified set of characters in the Actions panel.
Example
The following example replaces the characters “2006” in the Actions panel with the specified text.
// Type the following as the first line in the Actions panel
// 2006 - Addresses user request 40196
// Type the following in the JSFL file
fl.actionsPanel.setSelection(3,4);
fl.actionsPanel.replaceSelectedText("// Last updated: 2007");
See also
actionsPanel.getSelectedText()
,
actionsPanel.replaceSelectedText()
actionsPanel.setText()
Availability
Flash CS3 Professional.
Usage
actionsPanel.setText(replacementText)
Parameters
replacementText
A string that represents text to place in the Actions panel.
Returns
A Boolean value of
true
if the specified text was placed in the Actions panel;
false
otherwise.