Flash CS3 Professional.
actionsPanel.hasSelection()
None.
A Boolean value that specifies whether any text is selected in the Actions panel (true) or not (false).
Method; specifies whether any text is currently selected in the Actions panel.
The following example displays text that is currently selected in the Actions panel. If no text is selected, it displays all the text in the Actions panel.
if (fl.actionsPanel.hasSelection()) {
var apText = fl.actionsPanel.getSelectedText();
}
else {
var apText = fl.actionsPanel.getText();
}
fl.trace(apText);actionsPanel.getSelectedText(), actionsPanel.getText(), actionsPanel.replaceSelectedText(), actionsPanel.setSelection()