1 Reply Latest reply on May 12, 2008 12:38 PM by Newsgroup_User

    clearInterval

    djonesxenn
      The clearInterval is not working. This code is for a scrubber on a voice mail player. The first time the scrubber is clicked on, you can drag the scrubber to any point in the voice mail with no glitches. On the second voice mail, or any after the first, the scrubber pops back and forth across the scrubberBar. I believe it is because the clearInterval is not clearing the variable "id" from setInterval. I am just stuck, and I am wasting a lot of time on such a simple issue. Please help
        • 1. Re: clearInterval
          Level 7
          djonesxenn,

          > The clearInterval is not working.

          Two things come to mind, off the top of my head:

          a) Make sure your id variable is scoped properly. You can use the trace()
          function to send the string value of any expression to the Output panel. If
          id comes up undefined anywhere, you'll know that's part of the issue.

          > On the second voice mail, or any after the first, the
          > scrubber pops back and forth across the scrubberBar.

          b) That sounds like your onMetaData handler is only getting called the first
          time. Drop a quick trace(:"meta encountered"); in your onMetaData handler
          to see if it gets triggered on any loads after the first.


          David Stiller
          Adobe Community Expert
          Dev blog, http://www.quip.net/blog/
          "Luck is the residue of good design."