1 Reply Latest reply on Aug 19, 2010 3:13 PM by Ned Murphy

    button question

    tavmds

      can you make a button have multplie functions? as in if i click a button one and imahe will pop up and then click that same button

      and another different image will pop up??

        • 1. Re: button question
          Ned Murphy Adobe Community Professional & MVP

          You can if you create code that deals with clicking the button under different conditions.  Usually something like this might involve using conditional code... for instance, the following code could be put in the button click function... it basically tests to see if the first image is visible, and if it is, then make the second one visible, otherwise, make the first one visible.

           

          if(mc1.visible){

               mc2.visible = true;

          } else {

               mc1.visible = true;

          }