1 Reply Latest reply on May 12, 2006 7:30 AM by TimSymons

    help!!!

    Abyu
      The code is not working please help me
      onClipEvent (load) {
      function Tween() {
      easeType = mx.transitions.easing.Bounce.easeOut;
      var begin = 20;
      var end = 380;
      var time = .5;
      var mc = car_mc;
      carTween = new mx.transitions.Tween(mc, "_x", easeType, begin, end, time, true);
      }
      }
      onClipEvent (enterFrame) {
      if (this.hitTest(_root.glow_mc)) {
      Tween();
      trace("Collision");
      }
      }
      the code the movieClip car_mc(instance) and when it collides with glow_mc (another MovieClip) it should perform the function
      Tween()
      It is not working it does nothing
        • 1. Re: help!!!
          TimSymons Level 1
          Your scripts may be calling your Tween() function to quicky for you to see the actually tween.

          Since once the hitTest() is true you will call Tween() everytime "enterFrame" is activated. If you have your frames per second of your movie set to 30, this would be calling your Tween() function 30 times every second.

          Tim