PDA

View Full Version : Creating a right click menu


meeko
03-26-2003, 08:02 AM
Is it possible to create a right click menu in flash 5? I don't mean the 'flash' right click menu. I mean my own one with my own look, feel and options?

Thx

tost
03-26-2003, 08:04 AM
unfortunately not
i've seen people adding items to the context menu with javascript in html, but in flash the right-click is 'catched' by the player settings before anything else.

senocular
03-26-2003, 09:25 AM
you can, but the minimal basic menu for flash would still show and responsiveness would be a little buggy because of how Flash handles the focus coming off of that menu.

http://userpages.umbc.edu/~tmccau1/flash/rightclickmenu.html

its just a matter of displaying a clip when Key.isDown(2) is true (usually within an onEnterFrame event as there is no event to directly handle left clicks).

tost
03-27-2003, 07:33 AM
thanks for sharing that, senocular. buggy indeed but promising nonetheless :)
any chance for an fla somewhere? I'ld love to combine this with a system check to trace CMD+mouseclick on a mac. But then again, there are two button mouses on macs too. hmm. Brings me to another question: would it be possible to check that?
regards
tost