Forum Topic: Disabling Context Menu [as3]

(99 views • 5 replies)

This topic is 1 page long.

<< < > >>
None

musicdemon

Reply To Post Reply & Quote

Posted at: 7/16/09 10:16 PM

musicdemon NEUTRAL LEVEL 07

Sign-Up: 06/04/09

Posts: 17

Is there a way to completely disable the context menu in AS3? Using

stage.showDefaultContextMenu = false;

doesn't get rid of the "Settings" and "About Flash Player 10..." items.


None

musicdemon

Reply To Post Reply & Quote

Posted at: 7/16/09 10:49 PM

musicdemon NEUTRAL LEVEL 07

Sign-Up: 06/04/09

Posts: 17

I guess it's not possible. Here's an excerpt from the Adobe AS3 Language Reference:

"You cannot remove the Settings menu item from the context menu. The Settings menu item is required in Flash so that users can access the settings that affect privacy and storage on their computers. You also cannot remove the About menu item, which is required so that users can find out what version of Flash Player they are using. "

I guess this is going to have to be good enough.


None

ShirkDeio

Reply To Post Reply & Quote

Posted at: 7/16/09 10:52 PM

ShirkDeio LIGHT LEVEL 16

Sign-Up: 03/29/07

Posts: 989

I'll just confirm what you found. You can't completely disable the contextMenu. There will always be the two items in the menu that you can't get rid of or change.

I am a servant of the Most High God
The Hanging Collab || The Legend of Newgrounds (Game) || Crystal Rays (Song)


None

zenyara

Reply To Post Reply & Quote

Posted at: 7/17/09 07:27 AM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

You can disable it.

I have it working here: http://www.raidforce.com

Check out the latest updates:

Toga Games (crew)

BBS Signature

None

KaynSlamdyke

Reply To Post Reply & Quote

Posted at: 7/17/09 07:48 AM

KaynSlamdyke LIGHT LEVEL 16

Sign-Up: 06/25/04

Posts: 4,926

At 7/17/09 07:27 AM, zenyara wrote: I have it working here: http://www.raidforce.com

To be fair Zen, that's because you've got a javascript wrapper overriding your SWF, and passing instructions to it.

Current build for ThreedeeTiles : Monkey
Previous: Lamprey, Mountain Goat (Dead Fork)


None

zenyara

Reply To Post Reply & Quote

Posted at: 7/17/09 08:00 AM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

At 7/17/09 07:48 AM, KaynSlamdyke wrote:
At 7/17/09 07:27 AM, zenyara wrote: I have it working here: http://www.raidforce.com
To be fair Zen, that's because you've got a javascript wrapper overriding your SWF, and passing instructions to it.

true. can't do it in standalone.

Check out the latest updates:

Toga Games (crew)

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 02:11 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!