9 Replies Latest reply on Apr 12, 2007 10:57 AM by kglad

    What's wrong with my tween?

    MoonPilot
      Below is the script for one of two MC on stage. I've used this script in other projects and it works just fine. For some reason it's not doing anything with the current project. The following is for "MC2" which, when pressed, should tween the alpha value of "MC". If I change the instance name for the new Tween from "MC" to "this" the script executes correctly on "MC2" but won't trigger the same effect when using "MC". ???


      on (release) {
      import mx.transitions.Tween;
      import mx.transitions.easing.*;

      var alphaMC:Tween = new Tween(MC, "_alpha", None.easeIn, 0, 40, 3, true);

      alphaMC.onMotionFinished = function() {
      this.stop();