1 Reply Latest reply on Aug 4, 2009 4:58 AM by robdillon

    Add goTo Action to a Rollover Button

    CCBrown

      I am trying to add the following action to a rollover button: on (release) {
          gotoAndPlay(", );
      }

       

      I have done it in the past and didn't have a problem, but since I don't use Flash often I can't figure out what I am now doing wrong.

       

      The buttons are in the button layer.

       

      For some reason the file wouldn't attach, but can be found at this address:

      http://ccbwebdesigns.com/Nkor/NorthKorea_FLASH_V05.fla

       

      Any help would be greatly appreciated.

       

      Thanks.

        • 1. Re: Add goTo Action to a Rollover Button
          robdillon Most Valuable Participant

          The argument(s) for gotoAndPlay() is/are:

           

          1. A frame number or frame label: gotoAndPlay(4), or gotoAndPlay("section 2")

          2. The path to a movieClip and a frame number or frame label: newClipName.gotoAndPlay(4), or, newClipName.gotoAndPlay("section 2")

          3. The name of a different movie section and a frame number or frame label: gotoAndPlay("section name",4) or gotoAndPlay("section name","section 2")

           

          Do any of these fit your needs?