2 Replies Latest reply on Jan 5, 2007 4:30 AM by JelleBullaert

    Tween in AS doen't read string

    JelleBullaert
      Hi all

      The problem:
      When you push a button, a mc (clip1) starts moving via AS
      That works fine if you type clip1 directly "into the tween"
      But when you do it like this, it fails. But when you trace it, you get "clip1":

      quote:

      import mx.transitions.Tween;
      import mx.transitions.easing.*;

      button.onRelease = function(){
      variable = "clip"+1;
      trace(variable);
      var myTween:Tween = new Tween(variable, "_x", Strong.easeOut, 100, 500, 1, true);
      }


      here's the fla:
      http://jellebullaert.be/school/vraag.rar

      thanks in advance
      Jelle