Symbolinstance.description, Symbolinstance.filters – Adobe Extending Flash Professional CS5 User Manual
Page 445
423
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
Usage
symbolInstance.colorRedPercent
Description
Property; part of the color transformation for the instance. This property is equivalent to using the Color > Advanced
setting in the instance Property inspector (the percentage controls on the left of the dialog box). This value sets the red
values to a specified percentage. Allowable values are from -100 to 100.
Example
The following example sets the
colorRedPercent
of the selected symbol instance to 10:
fl.getDocumentDOM().selection[0].colorRedPercent = 10;
symbolInstance.description
Availability
Flash MX 2004.
Usage
symbolInstance.description
Description
Property; a string that is equivalent to the Description field in the Accessibility panel. The description is read by the
screen reader. This property is not available for graphic symbols.
Example
The following example stores the value for the Accessibility panel description of the object in the
theDescription
variable:
var theDescription = fl.getDocumentDOM().selection[0].description;
The following example sets the value for the Accessibility panel description to
Click the home button to go to home
:
fl.getDocumentDOM().selection[0].description= "Click the home button to go to home";
symbolInstance.filters
Availability
Flash 8.
Usage
symbolInstance.filters
Description
Property; an array of Filter objects (see
). To modify filter properties, you don’t write to this array directly.
Instead, retrieve the array, set the individual properties, and then set the array to reflect the new properties.