Copy link to clipboard
Copied
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:
Please I need to apply these actions. If you can provide me with the code and if I will use package, class, etc
Thanks..
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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..
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I used stage.showDefaultContextMenu = false;
and it hided the main menu but the resize menu still?
is there any other solution?
Copy link to clipboard
Copied
What resize menu are you talking about? Don't think the native Flash right click menu has one?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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/
Find more inspiration, events, and resources on the new Adobe Community
Explore Now