2 Replies Latest reply on Dec 3, 2006 7:44 PM by Newsgroup_User

    Show a movie clip every x seconds...

    Ricky2k7
      Hi,

      Can anyone tell me how to show a movie clip every x seconds?
      I'm trying to make a simple menu that show's a text every x seconds, but i don't want to use the timeline, just actionscript.
      Is it possible to show that text when nothing is selected for e determinate time?
        • 1. Re: Show a movie clip every x seconds...
          Level 7
          Hi,
          To each seconds the mc is show and hidden.

          var mcShow:Boolean = false;
          function showHideMc(mc:MovieClip):Void{
          mcShow = mcShow == true ? false : true
          mc._visible = mcShow;
          };
          setInterval(showHideMc, 1000, mcInstanceName);


          --
          Erick Souza
          www.ericksouza.com
          • 2. Re: Show a movie clip every x seconds...
            Level 7


            IndioDoido wrote:
            > Hi,
            >
            > Can anyone tell me how to show a movie clip every x seconds?
            > I'm trying to make a simple menu that show's a text every x seconds, but i
            > don't want to use the timeline, just actionscript.
            > Is it possible to show that text when nothing is selected for e determinate
            > time?


            ID = setInterval(mF, 1000);
            function mF() {(vis=!vis) ? mcShow._visible=false : mcShow._visible=true;
            }



            * where 1000 stands for 1 second

            --
            Best Regards

            Urami


            --


            <urami>
            If you want to mail me - DO NOT LAUGH AT MY ADDRESS
            </urami>