Advertisement
dcomicboy

intervals

Mar 10th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function Empty(num) // empty function to call so you don't actulaly have to do anything
  2. {
  3. var empty = num; //num being a random variable you set when Empty() is called
  4. }
  5.  
  6. btnMyButton.onRelease = function()
  7. {
  8. myInterval = setInterval(Empty(1),250); //myInterval is the variable name, Empty(1) is the function call, 1 is num = 1, 250 is 250 milliseconds to pause
  9. }
  10. clearInterval(myInterval); //telling myInterval to stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement