Document.setinstancetint(), Document.setmetadata() – Adobe Extending Flash Professional CS5 User Manual
Page 168

146
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Returns
Nothing.
Description
Method; sets the brightness for the instance.
Example
The following example sets the brightness for the instance to a value of 50:
fl.getDocumentDOM().setInstanceBrightness(50);
document.setInstanceTint()
Availability
Flash MX 2004.
Usage
document.setInstanceTint( color, strength )
Parameters
color
The color of the tint, in one of the following formats:
•
A string in the format
"#RRGGBB"
or
"#RRGGBBAA"
•
A hexadecimal number in the format
0xRRGGBB
•
An integer that represents the decimal equivalent of a hexadecimal number
strength
An integer between 0 and 100 that specifies the opacity of the tint.
Returns
Nothing.
Description
Method; sets the tint for the instance.
Example
The following example sets the tint for the selected instance to red with an opacity value of 50:
fl.getDocumentDOM().setInstanceTint(0xff0000, 50);
document.setMetadata()
Availability
Flash 8.
Usage
document.setMetadata(strMetadata)