Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 50

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 49
28
EXTENDING FLASH CS4 PROFESSIONAL
actionsPanel object
actionsPanel.hasSelection()
Availability
Flash CS3 Professional.
Usage
actionsPanel.hasSelection()
Parameters
None.
Returns
A Boolean value that specifies whether any text is selected in the Actions panel (true) or not (false).
Description
Method; specifies whether any text is currently selected in the Actions panel.
Example
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);
See also
actionsPanel.getSelectedText(), actionsPanel.getText(), actionsPanel.replaceSelectedText(),
actionsPanel.setSelection()
actionsPanel.replaceSelectedText()
Availability
Flash CS3 Professional.
Usage
actionsPanel.replaceSelectedText(replacementText)
Parameters
replacementText A string that represents text to replace selected text in the Actions panel.
Returns
A Boolean value of true if the Actions panel is found; false otherwise.
Zobrazit stránku 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 559 560

Komentáře k této Příručce

Žádné komentáře