Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 167

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 166
145
EXTENDING FLASH CS4 PROFESSIONAL
Document object
fl.getDocumentDOM().setFillColor("#cc00cc");
fl.getDocumentDOM().setFillColor(0xcc00cc);
fl.getDocumentDOM().setFillColor(120000);
fl.getDocumentDOM().setFillColor(null);
document.setFilterProperty()
Availability
Flash 8.
Usage
document.setFilterProperty(property, filterIndex, value)
Parameters
property A string specifying the property to be set. Acceptable values are "blurX", "blurY", "quality", angle",
"distance", "strength", "knockout", "inner", "bevelType", "color", "shadowColor", and
"highlightColor".
filterIndex An integer specifying the zero-based index of the filter in the Filters list.
value A number or string specifying the value to be set for the specified filter property. Acceptable values depend on
the property and the filter being set.
Returns
Nothing.
Description
Method; sets a specified filter property for the currently selected objects (assuming that the object supports the
specified filter).
Example
The following example sets the quality property to 2 for the second filter (index value of 1) in the Filters list of the
selected objects and then sets the
shadowColor property of the first filter in the Filters list on the selected object(s):
fl.getDocumentDOM().setFilterProperty("quality", 1, 2);
fl.getDocumentDOM().setFilterProperty("shadowColor", 0, "#FF00FF");
See also
document.addFilter(), document.getFilters(), document.setBlendMode(), document.setFilters(), Filter
object
document.setFilters()
Availability
Flash 8.
Vue de la page 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 559 560

Commentaires sur ces manuels

Pas de commentaire