Adobe Extending Flash Professional CS5 Manuale Utente Pagina 51

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 50
29
EXTENDING FLASH PROFESSIONAL
actionsPanel object
Last updated 5/2/2011
actionsPanel.setSelection()
Availability
Flash CS3 Professional.
Usage
actionsPanel.setSelection(startIndex, numberOfChars)
Parameters
startIndex A zero-based integer that specifies the first character to be selected.
numberOfChars An integer that specifies how many characters to select.
Returns
A Boolean value that specifies whether the requested characters can be selected (true) or not (false).
Description
Method; selects a specified set of characters in the Actions panel.
Example
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");
See also
actionsPanel.getSelectedText(), actionsPanel.hasSelection(),
actionsPanel.replaceSelectedText()
actionsPanel.setText()
Availability
Flash CS3 Professional.
Usage
actionsPanel.setText(replacementText)
Parameters
replacementText A string that represents text to place in the Actions panel.
Returns
A Boolean value of true if the specified text was placed in the Actions panel; false otherwise.
Vedere la pagina 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 564 565

Commenti su questo manuale

Nessun commento