Jump to content
Search Community

Does Yoyo works with glow filter on textfield ?

cariboo test
Moderator Tag

Recommended Posts

Hi,

i am trying to use the yoyo feature to make a glow appear/disappear on a textfield but i can't seem to get it working.

The glow does appear but stays there.

 

Here's my setup so far :

 

import com.greensock.plugins.*;

import com.greensock.easing.*;

import com.greensock.*;

TweenPlugin.activate([GlowFilterPlugin]);

 

TweenMax.to(myLabel, 0.5, {glowFilter:{color:0x000000, alpha:0.75, blurX:15, blurY:15, yoyo:true, repeat:1}});

 

I used yoyo on other projects without problem so i guess i'm missing something.

Any hint will be greatly appreciated.

 

Thanks!

m

Link to comment
Share on other sites

yeah just a little adjustment is necessary:

 

TweenMax.to(myLabel, 0.5, {glowFilter:{color:0x000000, alpha:0.75, blurX:15, blurY:15, yoyo:true, repeat:1}});

 

should be

 

TweenMax.to(myLabel, 0.5, {glowFilter:{color:0x000000, alpha:0.75, blurX:15, blurY:15}, yoyo:true, repeat:1});

 

it gets tricky with all the {}, but you had the yoyo included as part of the glowFilter props.

 

enjoy.

Link to comment
Share on other sites

yeah just a little adjustment is necessary:

TweenMax.to(myLabel, 0.5, {glowFilter:{color:0x000000, alpha:0.75, blurX:15, blurY:15}, yoyo:true, repeat:1});

it gets tricky with all the {}, but you had the yoyo included as part of the glowFilter props.

enjoy.

 

Oh Boy, I should have seen that. Thank you so much for your help.

I'll go get some sleep :)

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...