5 Replies Latest reply on Jul 3, 2012 4:49 PM by esdebon

    Only first frame played with gotoAndPlay

    learner102

      Hello,

       

      My issue is: I have a 120 frame movieclip with a stop(); action on the first frame.  I have AS (below) that tells the mc to 'gotoAndPlay(2); But it only goes to frame 2 and stops (no action on that frame) instead of continuing to frame 120.  Here an example of the code:

       

      my_mc.onEnterFrame=function(){

      if((mcText1 eq "Hit")){

      _root.other_mc.gotoAndPlay(2);

      }

      else{

      _root.other_mc.gotoAndStop(1);

      }

      }

       

      Any ideas to make the mc play automatically when the function requirements are met???

      I should know this.

       

      Thank you