Adobe Extending Flash Professional CS4 Instrukcja Użytkownika Strona 233

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 560
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 232
211
EXTENDING FLASH CS4 PROFESSIONAL
Filter object
filter.enabled
Availability
Flash CS3 Professional.
Usage
filter.enabled
Description
Property; a Boolean value that specifies whether the specified filter is enabled (true) or disabled (false).
Example
The following example disables the Color filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'adjustColorFilter'){
myFilters[i].enabled = false;
}
}
fl.getDocumentDOM().setFilters(myFilters);
filter.hideObject
Availability
Flash 8.
Usage
filter.hideObject
Description
Property; a Boolean value that specifies whether the source image is hidden (true) or displayed (false). This property
is defined for Filter objects with a value of
"dropShadowFilter" for the filter.name property.
Example
The following example sets the hideObject value to true for the Drop Shadow filters on the selected object(s):
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
if(myFilters[i].name == 'dropShadowFilter'){
myFilters[i].hideObject = true;
}
}
fl.getDocumentDOM().setFilters(myFilters);
Przeglądanie stron 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 559 560

Komentarze do niniejszej Instrukcji

Brak uwag