RightClick in Flash

Tuesday, July 12th, 2005

Do you need catch right-click in Flash?
Here is the code:

[as]
function onEnterFrame()
{
if(Key.isDown(2))
{
onRightMouseDown();
}
}

function onRightMouseDown()
{
trace(”right mouse clicked”);
}
[/as]

It would be fine to know how to disable context menu on right-click, but I think this is still good information for you.
[via FlashCoders list]

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

No Comments Yet

You can be the first to comment!

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics