1 Reply Latest reply on Nov 8, 2013 4:15 AM by Ned Murphy

    Time line change with Movie Clip!


      Help, I want a movie clip to interact with another to change the scene.


      this is my code on the "Door":


      onClipEvent(enterframe) {

           if (_root.char.hitTest(this)) {

                _root.gotoAndStop("Game2", 1);




      Game2 is my next scene name.


      but it is not working!

      Why is that!


      the other movie clip's instance is "char":

        • 1. Re: Time line change with Movie Clip!
          Ned Murphy Adobe Community Professional & MVP

          Take the code off of the object and place it in the main timeline, modifying it as shown...


          this.onEnterFrame = function(){

               if (char.hitTest(Door)) {   // replace "Door" with the instance name you gave it

                     delete this.onEnterFrame;

                     gotoAndStop("Game2", 1);