Skip to main content
Participating Frequently
March 6, 2010
Answered

multiple properties tween class

  • March 6, 2010
  • 1 reply
  • 1824 views

im having trouble figuring out how to script a tween in AS3 with multiple properties.  I have the single property syntax down, like such,

import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

var name:Tween = new Tween( gar, "x",  Regular.easeInOut, 60, 300 , 3, true);

but if I want multiple properties, im having trouble finding that info.

thanks.

This topic has been closed for replies.
Correct answer Andrei1-bKoviI

Oh, man!

Flash Tween sucks IMHO. There are much better tween engines out there. Look at TweenLite or TweenMax. They will allow you to use multiple properties and much more.

1 reply

Participating Frequently
March 6, 2010

i think ive got it.  I dropped the var and just did the new Tween statement like such;

new Tween( gar, "x",  Regular.easeInOut, 60, 300 , 3, true);

new Tween( gar, "y",  Regular.easeInOut, 60, 300 , 3, true);

each new tween acted out at the same time.

Participating Frequently
March 6, 2010

if I wanted a var that executed multiple tweens how would I code that?

Participating Frequently
March 7, 2010

Andrei1 is right - get yourself TweenLite / TweenMax and never use the included Tween class again - it's very poorly written.


thanks for the advice, I am playing around with it now.  Its very cool.