Extending Flash |
|
|
|
| Objects > Document object > document.setInstanceTint() | |||
Flash MX 2004.
document.setInstanceTint(color,strength)
color The color of the tint, in one of the following formats:
"#RRGGBB" or "#RRGGBBAA"0xRRGGBBThis parameter is equivalent to picking the Color: Tint value for a symbol in the Property inspector.
strength An integer between 0 and 100 that specifies the opacity of the tint.
Nothing.
Method; sets the tint for the instance.
The following example sets the tint for the selected instance to red with an opacity value of 50:
fl.getDocumentDOM().setInstanceTint(0xff0000, 50);
|
|
|
|