2 Replies Latest reply on Oct 23, 2007 12:51 PM by chopTheWood

    tween class and using variables

    chopTheWood Level 1
      I'm having trouble using a variable as the 1st paramenter in the Tween class.
      // f2_mc is the name of the clip to be tweened
      on (press) {
      _global.mcName = MovieClip;
      _global.mcName = f2_mc;
      _root.setXposition();
      }
      function (setXposition) {
      var moveIn:Object = new Tween(_global.mcName, "_x", Strong.easeOut, 600, 50, 2, true);
      moveIn.onMotionFinished = function() {
      }
      }