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

  • 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 464
443
EXTENDING FLASH PROFESSIONAL
Text object
Last updated 5/2/2011
text.length
Availability
Flash MX 2004.
Usage
text.length
Description
Read-only property; an integer that represents the number of characters in the Text object.
Example
The following example returns the number of characters in the selected text:
var textLength = fl.getDocumentDOM().selection[0].length;
text.lineType
Availability
Flash MX 2004.
Usage
text.lineType
Description
Property; a string that sets the line type. Acceptable values are "single line", "multiline", "multiline no wrap",
and
"password".
This property works only with dynamic or input text and generates a warning if used with static text. The "password"
value works only for input text.
Example
The following example sets the lineType property to the value multiline no wrap:
fl.getDocumentDOM().selection[0].lineType = "multiline no wrap";
text.maxCharacters
Availability
Flash MX 2004.
Usage
text.maxCharacters
Description
Property; an integer that specifies the maximum number of characters the user can enter in this Text object.
Zobrazit stránku 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 564 565

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

Žádné komentáře