0 Replies Latest reply on May 25, 2006 2:25 PM by adrianTNT

    Dinamically naming Tweens (tween1, tween2, ...)

    adrianTNT Level 1
      I want to use this code line with a counter:

      var Tween1:Tween = new Tween(box_mc, "_y", mx.transitions.easing.None.easeNone, 0, 100, 10, false);

      So that I name the Tweens like: Tween1, Tween2, etc.
      Normally with other objects it works like:

      var this["Tween"+counter]:tween=....

      Something like that, how can I use one code line with a counter there so I name them tween1, tween2, tween3?

      Thank you.
      Adrian.