View Single Post
Old 03-26-2009, 04:59 PM   PM User | #1
pspsully
New Coder

 
Join Date: Feb 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
pspsully is an unknown quantity at this point
Make a button do something after a a certain time

Hi Guys,

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:


on (press){
gotoAndPlay(2);
}


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?
pspsully is offline   Reply With Quote