Adobe Extending Flash Professional CS5 Bedienungsanleitung Seite 306

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 565
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 305
284
EXTENDING FLASH PROFESSIONAL
fontItem object
Last updated 5/2/2011
fontItem.italic
Availability
Flash CS4 Professional.
Usage
fontItem.italic
Description
Property; a Boolean value that specifies whether the Font item is italic (true) or not (false).
Example
Assuming that the first item in the Library is a Font item, the following code displays true in the Output panel if it is
italic,
false if it is not, and then sets it to italic.
var theItem = fl.getDocumentDOM().library.items[0];
fl.outputPanel.clear();
fl.trace("italic: "+ theItem.italic);
theItem.italic=true;
fl.trace("italic: "+ theItem.italic);
fontItem.size
Availability
Flash CS4 Professional.
Usage
fontItem.size
Description
Property; an integer that represents the size of the Font item, in points.
Example
Assuming that the first item in the Library is a Font item, the following code displays the item’s point size in the
Output panel and then sets it to 24.
var theItem = fl.getDocumentDOM().library.items[0];
fl.outputPanel.clear();
fl.trace("font size: "+ theItem.size);
theItem.size=24;
fl.trace("font size: "+ theItem.size);
Seitenansicht 305
1 2 ... 301 302 303 304 305 306 307 308 309 310 311 ... 564 565

Kommentare zu diesen Handbüchern

Keine Kommentare