Adobe Extending Flash Professional CS5 Manuale Utente Pagina 50

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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()
Vedere la pagina 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 564 565

Commenti su questo manuale

Nessun commento