|
-
controlling animation timing with Tweener class
Hey absolutezero342 thanks for the Tweener tip. I used it to add delays to in my code and it works great and is pretty easy to use so far. For anyone out there using MC Tween you should try the Tweener class instead. I have another issue I'm trying to solve. I'm trying to apply the Blur Filter effect to my target object that I am also tweening.
I've imported and initialized the class;
import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();
but I don't really know where to go from here to get it to work. I tried a few things but nothing has worked so far.
Here's my code
import caurina.transitions.Tweener;
import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();
redDot.alpha = 0;
//red dot moves diagonally and down
Tweener.addTween(redDot, {x:100, y:100, alpha:1, time:2, transition:"easeInOutQuad"});
Tweener.addTween(redDot, {delay:4, x:175, y:200, time:3, transition:"easeInOutQuint"});
animation.alpha = 0;
//animation button fades up from blur
Tweener.addTween(animation, {x:118, y:200, delay:6, alpha:1, height:100, width:300, time:1, transition:"easeInOutQuint"});
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|