Timer to disable button after clicked
Posted: Tue Oct 23, 2018 11:00 pm
Hey Everyone,
I tried to do a quick little search but couldn't really find what I was looking for. And once I see code, I freak out and click the X as fast as I can... probably not a good habit right?
But what I am doing is using the skin editor to play a series of animations for almost like a tour of a product. So basically click a button, it plays the animation, then it loads and hides 2 new buttons for "Next" and "Back". I got all of that figured out... basically just using the click command and hiding and hiding videos and buttons. I got it working really well actually, everything goes back and forward and plays the correct animations(transitioning form one part to the next).
But what I am trying to do now is have it so the user can't keep pounding the next button or back button while the animations are playing. I made it somewhat easier by making all of the animations 3 seconds (30 fps if that matters). I tried playing with the timer, but can't find a way to access a timer by mouse click? I could only get the timer to like start right when the first animation loads...
Hope that makes sense, I have a few more questions lined up but need to approach this one at a time... Is it weird that I am using this program, only for the skin and not anything to do with the panos too?
Thanks!
I tried to do a quick little search but couldn't really find what I was looking for. And once I see code, I freak out and click the X as fast as I can... probably not a good habit right?
But what I am doing is using the skin editor to play a series of animations for almost like a tour of a product. So basically click a button, it plays the animation, then it loads and hides 2 new buttons for "Next" and "Back". I got all of that figured out... basically just using the click command and hiding and hiding videos and buttons. I got it working really well actually, everything goes back and forward and plays the correct animations(transitioning form one part to the next).
But what I am trying to do now is have it so the user can't keep pounding the next button or back button while the animations are playing. I made it somewhat easier by making all of the animations 3 seconds (30 fps if that matters). I tried playing with the timer, but can't find a way to access a timer by mouse click? I could only get the timer to like start right when the first animation loads...
Hope that makes sense, I have a few more questions lined up but need to approach this one at a time... Is it weird that I am using this program, only for the skin and not anything to do with the panos too?
Thanks!