View Single Post
Old 03-27-2009, 09:24 AM   PM User | #3
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
Please put code between [ CODE ] brackets.

Code:
on (press) {
// get start time
mousedown = getTimer();
gotoAndStop(2);
}

on (release) {
// set time to hold down
timer = 3000;
// get finish time
mouseup = getTimer();
// calculate how long the button was pressed
difference = mouseup - mousedown;

if (difference >= timer) {
gotoAndPlay(3);
}

}
Can't say I really understand why or what you are doing here...
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote