Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 428

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 565
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 427
406
EXTENDING FLASH PROFESSIONAL
Stroke object
Last updated 5/2/2011
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.style = "hatched";
myStroke.curve = "straight";
myStroke.space = "close";
myStroke.jiggle = "wild";
myStroke.rotate = "free";
myStroke.length = "slight";
myStroke.hatchThickness = "thin";
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.strokeHinting
Availability
Flash 8.
Usage
stroke.strokeHinting
Description
Property; a Boolean value that specifies whether stroke hinting is set on the stroke.
Example
The following example enables stroke hinting for the stroke:
var myStroke = fl.getDocumentDOM().getCustomStroke();
myStroke.strokeHinting = true;
fl.getDocumentDOM().setCustomStroke(myStroke);
stroke.style
Availability
Flash MX 2004.
Usage
stroke.style
Description
Property; a string that describes the stroke style. Acceptable values are "noStroke","solid", "dashed", "dotted",
"ragged", "stipple", and "hatched". Some of these values require additional properties of the Stroke object to be
set, as described in the following list:
If value is "solid" or "noStroke", there are no other properties.
If value is "dashed", there are two additional properties: dash1 and dash2.
If value is "dotted", there is one additional property: dotSpace.
If value is "ragged", there are three additional properties: pattern, waveHeight, and waveLength.
If value is "stipple", there are three additional properties: dotSize, variation, and density.
Vue de la page 427
1 2 ... 423 424 425 426 427 428 429 430 431 432 433 ... 564 565

Commentaires sur ces manuels

Pas de commentaire