Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Empty(num) // empty function to call so you don't actulaly have to do anything
- {
- var empty = num; //num being a random variable you set when Empty() is called
- }
- btnMyButton.onRelease = function()
- {
- 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
- }
- clearInterval(myInterval); //telling myInterval to stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement