2 Replies Latest reply on Jul 12, 2010 11:11 AM by Ron Colmen

    timeout

    Ron Colmen Level 2

      When on frame 10, make 3 movieclips visible for 7seconds and then dissapear? How do I write the code?

       

      I'm not sure how to put things together.

       

      clearTimeout(mc4_mcT);

      mc4_mcT=setTimeout(mc1_mc,5000);

      mc1_mc._visible = false;

      mc2_mc._visible = false;

      mc3_mc._visible = false;

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

          First you need to make the objects visible and then set the timeout to occur.  You don't need to use clearTimeout unless you plan to stop the timeout before it is complete.

           

          mc1_mc._visible = true;

          mc2_mc._visible = true;

          mc3_mc._visible = true;

           

          setTimeout(timedFunction,7000);

           

          function  timedFunction(){

               mc1_mc._visible = false;

               mc2_mc._visible = false;

               mc3_mc._visible = false;

          }

          • 2. Re: timeout
            Ron Colmen Level 2

            Cheers Ned!!!