Search Tutorials
onClipEvent(enterFrame) { if (_root.startcounter==true) { _root.count++; trace(_root.count); if (_root.count>=_root.delay) { _root.count=0; _root.startcounter=false; _root.flag=false; } } } The second if statement checks if the 'count' variable has overtaken the 'delay' variable. If it has, the 'count' variable is reset to 0 and 'startcounter' is set to false stoppping the Counter which runs on the condition 'if (_root.startcounter==true)'. The 'flag' variable is also set to false indicating that the next click can never be a double-click. Run it Now run the Movie and double-click at different speeds and test if it is working properly. | |||||||||||||
| «prev 1 2 3 4 5 6 |
| » Level Intermediate |
|
Added: : 2006-04-03 Rating: 7.00 Votes: 3 Hits: 732 |
| » Author |
| College student, 19 years old Intersts - Computers, Sports |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| Get conversion and unzipping tools for PC and Mac here! |
| » Forums | |
|
|
|
| Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review. | ||||||||||||||||||||
|
||||||||||||||||||||

|