Adobe Extending Flash Professional CS4 Manual do Utilizador Página 468

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 467
446
EXTENDING FLASH CS4 PROFESSIONAL
Text object
Input text is always selectable. Flash generates a warning when this property is set to false and used with input text.
Example
The following example sets the selectable property to true:
fl.getDocumentDOM().selection[0].selectable = true;
text.selectionEnd
Availability
Flash MX 2004.
Usage
text.selectionEnd
Description
Property; a zero-based integer that specifies the end of a text subselection. For more information, see
text.selectionStart.
text.selectionStart
Availability
Flash MX 2004.
Usage
text.selectionStart
Description
Property; a zero-based integer that specifies the beginning of a text subselection. You can use this property with
text.selectionEnd to select a range of characters. Characters up to, but not including, text.selectionEnd are
selected. See
text.selectionEnd.
If there is an insertion point or no selection, text.selectionEnd is equal to text.selectionStart.
If text.selectionStart is set to a value greater than text.selectionEnd, text.selectionEnd is set to
text.selectionStart, and no text is selected.
Example
The following example sets the start of the text subselection to the sixth character:
fl.getDocumentDOM().selection[0].selectionStart = 5;
The following example selects the characters Barbara from a text field that contains the text My name is Barbara
and formats them as bold and green:
Vista de página 467
1 2 ... 463 464 465 466 467 468 469 470 471 472 473 ... 559 560

Comentários a estes Manuais

Sem comentários