Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Removing Flash logo, RightClick Menu, and Resize Menu from a Flash Movie

Guest
Feb 26, 2013 Feb 26, 2013

Hello,

I am a new user of Adobe Flash Professional CS6 and Flash Player 11.2, I need to code the followings in the Action Panel:

  1. Removing RightClick Menu from the Stage.
  2. Removing the Flash Player Logo.
  3. Removing the Resize Menu e.g: Maximize, Manimize, etc.

Please I need to apply these actions. If you can provide me with the code and if I will use package, class, etc

Thanks..

TOPICS
ActionScript
3.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Feb 26, 2013 Feb 26, 2013

1.

stage.addEventListener(MouseEvent.RIGHT_CLICK, doNothing);

       function doNothing(e:MouseEvent):void {

            //do nothing...

            trace(e.type);

        }

2. ResourceHacker can open up a windows-projector (exe) and allows you to replace the embedded icons

3. the above mentioned program gives you also access to the menus and allows you to hide them

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 26, 2013 Feb 26, 2013

Thank you for your reply.

Do you mean that I need to use the ResourceHacker Software with the Flash Playrer EXE which is located on my machine?

If I will do, will the modifications  be applied on the Clients' PCs ?

If not I will need your help in writing a code in the Action Script section to ensure running the .swf without the flash player logo and the resize menu.

Best regards..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 26, 2013 Feb 26, 2013

I have never heard of hiding the context menu entirely short of JavaScript hacks but you can set this variable on the stage:

stage.showDefaultContextMenu = false;

and it will remove a lot of options and give the bare minimum to the user.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 26, 2013 Feb 26, 2013

I used stage.showDefaultContextMenu = false;

and it hided the main menu but the resize menu still?

is there any other solution?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 26, 2013 Feb 26, 2013

What resize menu are you talking about? Don't think the native Flash right click menu has one?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 26, 2013 Feb 26, 2013

moccamaximum wrote:

1.

stage.addEventListener(MouseEvent.RIGHT_CLICK, doNothing);

       function doNothing(e:MouseEvent):void {

            //do nothing...

            trace(e.type);

        }

2. ResourceHacker can open up a windows-projector (exe) and allows you to replace the embedded icons

3. the above mentioned program gives you also access to the menus and allows you to hide them

Use ResourceHacker on the windows-projector exe generated with flash

this comand

stage.showDefaultContextMenu = false;

does not remove the submenu, it leaves less options

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 26, 2013 Feb 26, 2013
LATEST

That's what I said - I never said it removed the submenu I mentioned you had to use JavaScript hacks for that. But with those you have to handle right-click within JavaScript and then pass it to Flash via ExternalInterface to do what you want with it.

Although with Flash Player 11 and above you can just listen for MouseEvent.RIGHT_CLICK to disable it:

http://www.leebrimelow.com/quick-tip-new-right-click-mouse-event/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines