Adobe Extending Flash Professional CS5 Manuale Utente Pagina 425

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 424
403
EXTENDING FLASH PROFESSIONAL
Stroke object
Last updated 5/2/2011
Usage
stroke.length
Description
Property; a string that specifies the length of a hatch line. This property is available only if the stroke.style property
is set to
hatched (see stroke.style). Acceptable values are "equal", "slight variation", "medium variation",
and "random". (The value "random" actually maps to "medium variation".)
Example
The following example sets the length property to slight for a stroke style of hatched:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "hatched";
myStroke.curve = "straight";
myStroke.space = "close";
myStroke.jiggle = "wild";
myStroke.rotate = "free";
myStroke.length = "slight variation";
myStroke.hatchThickness = "thin";
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.miterLimit
Availability
Flash 8.
Usage
stroke.miterLimit
Description
Property; a float value that specifies the angle above which the tip of the miter will be truncated by a segment. That
means the miter is truncated only if the miter angle is greater than the value of
miterLimit.
Example
The following example changes the miter limit of the stroke setting to 3. If the miter angle is greater than 3, the miter
is truncated.
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.miterLimit = 3;
var myStroke = fl.getDocumentDOM().setCustomStroke();
stroke.pattern
Availability
Flash MX 2004.
Vedere la pagina 424
1 2 ... 420 421 422 423 424 425 426 427 428 429 430 ... 564 565

Commenti su questo manuale

Nessun commento