doubleclick as3
- Started
- Last post
- 10 Responses
- powertoni
Anybody have a solid method for differentiating a double-click from a single click in as3? (i need both and double-click can't trigger the method for click)
Ive been trying a janky hack:
var n:Number =getTimer()
if(( n - timeLastClicked )< 400){
goToEnd()
return
}
timeLastClicked = n;
- acescence0
isn't there a clickcount property you can check on mousedown?
- mightyj0
did you see this: http://www.charglerode.com/blog/…
- powertoni0
"As an interface and game developer, I find myself struggling with Flash as a development platform because of it’s lack of support for common inputs."
Goddamn right. also, every single fucking default value is the least commonly used value. use weak references = false? really?
- SteveJobs0
if you've done any serious programming and can contibute some ideas, do so here:
http://www.mikechambers.com/blog…
i have several complaints about the runtime and api and posted them there
- SteveJobs0
i will say one thing though. anyone who 'learned to program' in flash as2 or earlier learned the wrong way. and it's sad, because with adobe's underwhelming attempt to make flash a better technology, from a developers perspective, they've alienated all those old-schoolers who are struggling to grasp these "new" concepts they should've learned from the beginning.
- acescence0
anyone who learned to program by learning a language learned the wrong way.
- acescence0
meaning there's a difference between learning the fundamentals of programming and learning a language. if you have a solid foundation, you can program in any language in the amount of time it takes to learn the syntax specific to that language. a lot of people learn a language but don't understand programming beyond the syntax of that language.
- SteveJobs0
i kind of agree with that, but you have to start somewhere, and both of those are generally leanred simultaneously. i started with c, the c++, etc., and everything since has been a breeze. but if i had started with flash back in the late 90's or anywhere up till as3 was introduced, i'd probably be a bit confused and quite sure adobe was taking flash in the "wrong" direction.
- CyBrain0
...but if i had started with flash back in the late 90's or anywhere up till as3 was introduced, i'd probably be a bit confused...
Describes me to a T
(what does that phrase mean)