Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 228

  • 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 227
206
EXTENDING FLASH PROFESSIONAL
Filter object
Last updated 5/2/2011
filter.angle
Availability
Flash 8.
Usage
filter.angle
Description
Property; a float value that specifies the angle of the shadow or highlight color, in degrees. Acceptable values are
between 0 and 360. This property is defined for Filter objects with a value of
"bevelFilter", "dropShadowFilter",
"gradientBevelFilter", or "gradientGlowFilter" for the filter.name property.
Example
The following example sets the angle to 120 for the Bevel filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++) {
if(myFilters[i].name == 'bevelFilter'){
myFilters[i].angle = 120;
}
}
fl.getDocumentDOM().setFilters(myFilters);
See also
document.setFilterProperty()
filter.blurX
Availability
Flash 8.
Usage
filter.blurX
Description
Property; a float value that specifies the amount to blur in the x direction, in pixels. Acceptable values are between 0
and 255. This property is defined for Filter objects with a value of
"bevelFilter", "blurFilter",
"dropShadowFilter", "glowFilter", "gradientBevelFilter", or "gradientGlowFilter" for the filter.name
property.
Example
The following example sets the blurX value to 30 and the blurY value to 20 for the Blur filters on the selected object(s):
Vue de la page 227
1 2 ... 223 224 225 226 227 228 229 230 231 232 233 ... 564 565

Commentaires sur ces manuels

Pas de commentaire