3 Replies Latest reply on Dec 3, 2012 1:59 PM by Ned Murphy

    How can I make a button that on press the object appears and on second press the object to disappear

    zosaji

      Hello,

      I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:

       

      on (press)

      {

          _root.top1.gotoAndStop(2);

          _root.topp.gotoAndStop(2);

          _root.mm1.gotoAndStop(2);

                _root.m1.gotoAndStop(2);

      }

       

      but from here I'm stuck.

      Thank you for your help