Jump to content
Search Community

How to cancel my glow after done [SOLVED]

fs_tigre test
Moderator Tag

Recommended Posts

Hi,

 

I was trying to cancel a glow after its done using the remove:true propety but it doesnt work, it doesnt remove it.

 

This is the code:

import com.greensock.*;

TweenMax.to(mc1, .1, {glowFilter:{color:0x91e600,alpha:1, blurX:5, blurY:5,strength:10},remove:true,overwrite:0});

 

 

Any idea why it is not working?

 

Thanks

Link to comment
Share on other sites

You nested the remove:true in the wrong spot - it needs to be inside the filter object.

 

BAD: TweenMax.to(mc, 1, {glowFilter:{color:0x91e600,alpha:1, blurX:5, blurY:5}, remove:true});

GOOD: TweenMax.to(mc, 1, {glowFilter:{color:0x91e600,alpha:1, blurX:5, blurY:5, remove:true}});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...