1 Reply Latest reply on Feb 26, 2007 12:56 AM by Peter Lorent

    AS tweens from the timeline?

    Level 7
      I have a file that I have a timeline animation in. At some poing in the
      animation, I would like to use AS to tween something over the stage. I
      have the following on that frame:

      function tracefunc(){
      trace("please make this work");
      }

      ZigoEngine.doTween({target:myBox, _x:115, _y:270, _width:79.9,
      _height:68.6, seconds:0.2, ease:"easeInQuad", func:"tracefunc"});


      On the first frame of the file I have:
      import com.mosesSupposes.fuse.*
      ZigoEngine.register(Shortcuts,Fuse,PennerEasing,FuseItem);


      If I put a stop on the first frame, place the box there also, it works
      fine. But as soon as I trigger this while the movie is playing, even
      though the myBox is on another frame and present, it does not work. I
      think I had this problem before, where AS tween do not work while the
      timeline is playing? Is that possible?

      Thank you for any help!
      B
        • 1. Re: AS tweens from the timeline?
          Peter Lorent Level 2
          You need to repeat that import statement (only works for the current frame).
          import com.mosesSupposes.fuse.*
          ZigoEngine.register(Shortcuts,Fuse,PennerEasing,FuseItem);
          function tracefunc(){
          trace("please make this work");
          }
          ZigoEngine.doTween({target:myBox, _x:115, _y:270, _width:79.9,
          _height:68.6, seconds:0.2, ease:"easeInQuad", func:"tracefunc"})