Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 472

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 471
450
EXTENDING FLASH CS4 PROFESSIONAL
Text object
Description
Property; an integer that is equivalent to the Tab Index field in the Accessibility panel. This value lets you determine
the order in which objects are accessed when the user presses the Tab key.
Example
The following example gets the tabIndex of the currently selected object:
var theTabIndex = fl.getDocumentDOM().selection[0].tabIndex;
The following example sets the tabIndex of the currently selected object:
fl.getDocumentDOM().selection[0].tabIndex = 1;
text.textRuns
Availability
Flash MX 2004.
Usage
text.textRuns
Description
Read-only property; an array of TextRun objects (see TextRun object).
Example
The following example stores the value of the textRuns property in the myTextRuns variable:
var myTextRuns = fl.getDocumentDOM().selection[0].textRuns;
text.textType
Availability
Flash MX 2004.
Usage
text.textType
Description
Property; a string that specifies the type of text field. Acceptable values are "static", "dynamic", and "input".
Example
The following example sets the textType property to input:
fl.getDocumentDOM().selection[0].textType = "input";
Zobrazit stránku 471
1 2 ... 467 468 469 470 471 472 473 474 475 476 477 ... 559 560

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

Žádné komentáře