Detecting and handling right mouse clicks in Flash has always been a pain. I blogged about it four years ago in the post preventing the right mouse cheat in your Flash games where I explained a dirty trick to trigger right mouse button with As2, and guess what? Things got even worse with As3, although I found a workaround preventing players to cheat in my Flash game Stringy. Finally, the pain is over. With Flash Player 11.2, you can finally do everything you want in Flash movies, without exporting them for Air. Look at this movie: You can use left mouse button to drag boxes, and right mouse button to destroy them. Also notice, the default right click menu does not appear. Look at the source code: [...]
Read more: Easily handle right mouse button in Flash movies
No comments:
Post a Comment