Adobe Extending Flash Professional CS5 Manuale Utente Pagina 176

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 175
154
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
strokeType A string that specifies the new type of stroke for the selection. Acceptable values are "hairline",
"solid", "dashed", "dotted", "ragged", "stipple", and "hatched".
Returns
Nothing.
Description
Method; sets the color, width, and style of the selected stroke. For information on changing the stroke in the Tools
panel and Property inspector, see document.setCustomStroke().
Example
The following example sets the color of the stroke to red, the size to 3.25, and the type to dashed:
fl.getDocumentDOM().setStroke("#ff0000", 3.25, "dashed");
document.setStrokeColor()
Availability
Flash MX 2004.
Usage
document.setStrokeColor(color)
Parameters
color The color of the stroke, in one of the following formats:
A string in the format "#RRGGBB" or "#RRGGBBAA"
A hexadecimal number in the format 0xRRGGBB
An integer that represents the decimal equivalent of a hexadecimal number
Returns
Nothing.
Description
Method; changes the stroke color of the selection to the specified color. For information on changing the stroke in the
Tools panel and Property inspector, see
document.setCustomStroke().
Example
The three statements in the following example set the stroke color using each of the different formats for specifying
color:
fl.getDocumentDOM().setStrokeColor("#cc00cc");
fl.getDocumentDOM().setStrokeColor(0xcc00cc);
fl.getDocumentDOM().setStrokeColor(120000);
Vedere la pagina 175
1 2 ... 171 172 173 174 175 176 177 178 179 180 181 ... 564 565

Commenti su questo manuale

Nessun commento