Hide controls for flash (swf)?

4

How is the correct way to hide controls in the SWF? For when the user right click does not appear the options ...

These are the controls:

ThisimghereiswhatIwantittobeabout:

I do not know if it's with <embed> or <object> or if it's with action script same ...: S

    
asked by anonymous 04.04.2016 / 21:17

2 answers

2

You can do this by AS as follows:

var meuMenu:ContextMenu = new ContextMenu();
meuMenu.hideBuiltInItems();
stage.contextMenu = meuMenu;

In addition to hiding the controls you can try to use ActionScript itself and hide the contextmenu, like this:

stage.addEventListener(MouseEvent.RIGHT_CLICK, function(e:MouseEvent):void {});
stage.addEventListener(MouseEvent.CONTEXT_MENU, function(e:MouseEvent):void {});

    
04.04.2016 / 21:39
2

It is in object .

Inside it put:

<param name="menu" value="false" />

And within the tag embed put:

menu="false"
    
04.04.2016 / 21:32