Extending Flash |
|
|
|
| Objects > actionsPanel object > actionsPanel.setSelection() | |||
Flash CS3 Professional.
actionsPanel.setSelection(startIndex,numberOfChars)
startIndex A zero-based integer that specifies the first character to be selected.
numberOfChars An integer that specifies how many characters to select.
A Boolean value that specifies whether the requested characters can be selected (true) or not (false).
Method; selects a specified set of characters in the Actions panel.
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");
actionsPanel.getSelectedText(), actionsPanel.hasSelection(), actionsPanel.replaceSelectedText()
|
|
|
|