Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 710 Bytes

File metadata and controls

27 lines (18 loc) · 710 Bytes

filter.contrast

Availability

Flash 8.

Usage

filter.contrast

Description

Property; a float value that specifies the contrast value of the filter. Acceptable values are between -100 and 100. This property is defined for Filter objects with a value of "adjustColorFilter" for the filter.name property.

Example

The following example sets the contrast value to -15.5 for the Adjust 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].contrast = -15.5;
}
}
fl.getDocumentDOM().setFilters(myFilters);