A few days ago I read about Flash's added support for MouseEvent.RIGHT_CLICK, so I thought I'd give it a try.
I then rebuilt and tested and found that although those steps succesfully disabled my right-click menu, some time into the execution of the application I would get a cryptic "Cannot create property 0" on my Array-subclassed object. So, I stepped through the code and found that the line where that property is set has a valid property name (not "0"), as well as a valid value.
After an entire day of trying different Flex versions, playerglobal.swcs and -swf-version settings, I've boiled the error down to this: if I use -swf-version >=13 (Flash Player 11.0), I get an error. Using -swf-version=12 or lower, or disabling the compiler flag entirely works just fine. Using Flex 4.6, which uses 11.1.0 as the default target flash version also causes the error. Basically, I can't use Flash 11.
Any suggestions would be very, very welcome.