1 Reply Latest reply on Jun 3, 2006 6:50 AM by Juankpro

    tween problem

    liek04
      I'm trying to tween a moviclip programmaticly, but in some cases the the tween doesn't work right. Instead of tweening like it should, it rotates the picture 90 degrees. But not every time. I'm using the Tween clas like this:

      var tween1:Tween = new Tween(to1_mc,"_xscale",Regular.easeOut,0,30,30);
      var tween2:Tween = new Tween(to1_mc,"_yscale",Regular.easeOut,0,30,30);

      Can someone please tip me off what the problem could be?
        • 1. tween problem
          Juankpro Level 2
          Maybe you are loading something inside the movie clip? Or maybe the scaling movie clip has an animation. Both can be the reason for the tween to fail. You know, in both cases the clip changes its size all the time making calculations for scale unpredictable. If you are loading something use the MovieClipLoader class to load it and in the onLoadInit event use execute the tweens.