Make a button do something after a a certain time
I have a button in Flash, i am still using Flash 8 and ActionScript 2 as thats what im used to :)
When i click the button, i want it to go and and play a different Frame so i have:
But i want it to gotoAndPlay frame 2 only after 3 seconds of clicking the button.
Ideally, i would like that when the button is clicked, it will gotoAndPlay frame 2, but if you click the button and hold it for 3 seconds, it will gotoAndPlay frame 3.
Is it even possible to do that?
Ok, i made some progress, i came up with this:
However, the problem i have now is that the button has to be released. I want to go to frame 2 while the button is still being pressed, not aftre it is released?
i have played with putting the executable code in the on (press) function but then i cannot play frame 3 when the button is released.
Any Ideas would be greatly appreciated :)
Please put code between [ CODE ] brackets.
|All times are GMT +1. The time now is 05:03 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.