Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 711 Bytes

File metadata and controls

25 lines (17 loc) · 711 Bytes

compiledClipInstance.blendMode

Availability

Adobe Animate.

Usage

compiledClipInstance.blendMode

Description

Property; a string that specifies the blend mode. Valid blend modes are: normal, layer, darken, multiply, lighten, screen, overlay, hardlight, add, subtract, difference, invert, alpha, and erase.

Example

The following example illustrates getting and setting the blendMode property:

//if the blend mode is 'add', change it to 'subtract'
var blend = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].blendMode;
fl.trace(blend);
if (blend == 'add'){
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].blendMode = 'subtract';
}