Jump to content
Search Community

Why wont alpha and delay work through CDATA-initialization

flasp test
Moderator Tag

Recommended Posts

I am entering data to a timelineMax-tween from CDATA, but has a problem with alpha.

The alpha-effect does not take place. In no form.

All other effects like x, y, scaleX, scaleY, rotation, delay,rotationY and so on seems to work.

What am I missing here.

 

Other irregularities: When appending from CDATA the properties adds to the current position, it does not go to the actual position.

 

Imagine both tweens comes from CDATA:

tween1=x:400;

tween2=x:200;

 

tl.append(new TweenLite(green, 2, tween1));

tl.append(new TweenLite(green, 2, tween2));

 

then the movie green will end in posion x:600;

Link to comment
Share on other sites

i don't know why the alpha isn't working, it could relate to the other issue.

 

the reason your tweens aren't going to absolute positions is because they are being seen as String values which TweenLite interprets as relative values.

 

read tip 4 Relative v Absolute http://www.greensock.com/tweening-tips/

 

when you are building your properties object make sure the values are converted to Number()

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