JavaScript code for Animate Color Effects > Advanced settings
Hi Animate support community,
Is there a way to access the Animate Color Effects > Advanced panel settings with JavaScript code? I have an old project written in ActionScript 2.0 that I am trying to convert to HTML5 Canvas. This project contains many images of flowers as movie clips and I want to change the color of these flowers from a button click.
The base drawing objects of these flowers is done in grayscale gradients and the color is applied using the Color Effects > Advanced panel (see attached JPG) which shows the settings and results. The code below doesn’t work to change the color because it’s not accessing the Color Effects > Advanced settings. Is there a way to access these settings with JavaScript? Thanks.
Zaffer
this.yellow_btn_1.addEventListener("click", change_color_yellow.bind(this));
function change_color_yellow()
{
bellFrontLt.petals_mc_1.shape.graphics._fill.style = "rgb(255,255,0)";
}
