0 Replies Latest reply on Sep 30, 2009 2:33 AM by wgb14

    Is there a better way than this?

    wgb14 Level 1

      Hi

       

      What I want to do is the following

       

      Alert a message window every x amount of seconds. Reset the counter every time the user clicks anywhere on the screen. Is there a better way than this?

       

      global delay1

      on startmovie me

        delay1 = 2

        dataTMObj = timeOut().new("activeXData", 400, #getDataFromActiveX, me)

      end

      on getDataFromActiveX me

        delay1 = delay1 - 1  

        if (delay1 = 0) then

          alert string ("Nyztazo")

          delay1 = 2

        end if

      end

       

      on exitFrame me

        go to the frame

      end

       

      global delay1

      on mousedown

        delay1= 2

      end