1 Reply Latest reply on May 17, 2006 4:21 AM by blemmo

    gotoAndplay

    Abyu
      hi
      can anybody help me
      please say if the gotoAndplay function can be added in onclipEvent of a movie clip
      for eg. like this
      onClipEvent (enterFrame){
      if (life == 0){ //life is number from _root.life
      gotoAndPlay(2);
      }
      }
        • 1. Re: gotoAndplay
          blemmo Level 1
          Yes, it can. Just take care of the scope of your code:
          onClipEvent (enterFrame){
          if (_root.life == 0){ //life is number from _root.life
          _root.gotoAndPlay(2); // or this.gotoAndPlay(2) if it's the MC that should change, not the main movie
          }
          }

          greets,
          blemmo