• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

JSFL alpha value for layer

New Here ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

hi All, in the new versions of animate there's the option to make the layer transparent, the default its set to 50%. see picture below.

I need to do a panel in jsfl with a button that automatically set the transparency of the layer

In the history panel I see the jsfl code:

var t = fl.getDocumentDOM().getTimeline();

var l = t.layers[t.currentLayer];

l.layerType='normal';

l.name='prop';

l.locked=false;

l.visibility='transparent';

l.color='#009999';

l.height=100;

l.outline=false;

l.alpha=50;

the very last command is the alpha value, but if I try to re-use the same code on another layer it's doing nothing...

or at least the code change the property of the layer but is not enabling the transparency...

can you help me to understand how to make a code that turns on the transparency, please?

thanks

Views

455

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 09, 2017 Jun 09, 2017

you're correct: that doesn't work with the current animate version but will probably be fixed in the next animate version.

Votes

Translate

Translate
Community Expert ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

you're correct: that doesn't work with the current animate version but will probably be fixed in the next animate version.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

Thanks kglad , I hope it will be enabled that function in future

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

LATEST

it probably will.  see my edited reply.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines