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

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 49
28
EXTENDING FLASH PROFESSIONAL
actionsPanel object
Last updated 5/2/2011
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.hasSelection(), actionsPanel.setSelection(),
actionsPanel.setText()
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
actionsPanel.getScriptAssistMode()
Zobrazit stránku 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 564 565

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

Žádné komentáře