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

  • 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 432
411
EXTENDING FLASH CS4 PROFESSIONAL
Stroke object
If value is "hatched", there are six additional properties: hatchThickness, space, jiggle, rotate, curve, and
length.
Example
The following example sets the stroke style to ragged:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "ragged";
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.thickness
Availability
Flash MX 2004.
Usage
stroke.thickness
Description
Property; an integer that specifies the stroke size.
Example
The following example sets the thickness property of the stroke to a value of 2:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.thickness = 2;
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.variation
Availability
Flash MX 2004.
Usage
stroke.variation
Description
Property; a string that specifies the variation of a stippled line. This property is available only if the stroke.style
property is set to
stipple (see stroke.style). Acceptable values are "one size", "small variation", "varied
sizes", and "random sizes".
Example
The following example sets the variation property to random sizes for a stroke style of stipple:
Zobrazit stránku 432
1 2 ... 428 429 430 431 432 433 434 435 436 437 438 ... 559 560

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

Žádné komentáře