Jump to content
Search Community

Yoyo problems

dougz test
Moderator Tag

Recommended Posts

Hello, I am brand new to TweenMax and probably making a silly mistake, but hopefully it will only take someone a second to diagnose the problem. I'm trying to make an object pulse with an outer glow, indefinitely.

 

This is the AS I'm using:

 

TweenMax.to(mc, 2, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:10, blurY:10, repeat:-1, yoyo:true}});

 

The object does glow, but with no pulsing, it simply tweens the glow alpha to 1 and then leaves it there. What am I doing wrong?

 

Thanks very much for your help.

Link to comment
Share on other sites

I'll answer my own question here, in case anyone finds this. As we might have guessed, a misplaced bracket was the culprit.

 

Correct code is

TweenMax.to(impresa_blue1, 2, {glowFilter:{color:0xFFFFFF,alpha:1,blurX:10,blurY:10},repeat:-1,yoyo:true});

, so that the properties for the glow are bracketed within the properties for the whole tween.

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