Note that there are some explanatory texts on larger screens.

plurals
  1. PODisable Context Menu - Flash Professional Export (Flash 11.2 - CS6)
    text
    copied!<p>Flash 11.2 added the capability to attach an right-click mouse-event to MovieClips.<br> EX:</p> <pre><code>var mc:MovieClip = new MovieClip mc.addEventListener(MouseEvent.RIGHT_MOUSE_DOWN, myFunction); </code></pre> <p>When this listener is attached, it should be impossible for the Context Menu to pop up on right-click of this object. Flash disables the functionality.</p> <p>When I export a new SWF from Flash Professional (CS6 Mac) and that SWF is embedded in the browser, it works as expected. Right-click does not spawn a context menu. </p> <p>However, this is not the case with the flash player within Flash Professional. The flash player presented within Flash Professional just after export does not hide the context menu. <img src="https://i.stack.imgur.com/wumJ3.jpg" alt="Incorrect Behavior"></p> <p>While it's possible for me to develop by simply exporting the SWF and testing it in-browser, I lose out on all the debugging that Flash Professional offers.</p> <p>How do I fix this issue?</p> <h1>Update 1</h1> <p>This issue isn't with exporting to 11.2 - I can already do that. All changes mentioned in <a href="https://blogs.adobe.com/rgalvan/2011/11/adding-fp11-support-to-flash-pro-cs5-and-cs5-5.html" rel="nofollow noreferrer">this tutorial</a> have already been made with base install of Flash Professional CS6.</p> <p>running:</p> <pre><code>trace(flash.system.Capabilities.version) </code></pre> <p>results in: </p> <blockquote> <p>MAC 11,2,202,228</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload