When an OpenLaszlo application is deployed using the SWF10/11 runtime, is it possible to completely disable the Flash Player context menu on desktop computers?
Asked
Active
Viewed 279 times
1 Answers
3
That's only possible starting with Flash Player 11.2. I have done a test run with a modified version of OpenLaszlo based on the flex4.6 branch, adding Flash 11.2+ support to the OpenLaszlo compiler. With the following LZX code I managed to remove the default Flash Player context menu completely:
<canvas width="100%" height="800" proxied="false">
<passthrough when="$as3">
import flash.events.MouseEvent;
</passthrough>
<handler name="oninit">
if ($as3) {
Debug.info(MouseEvent.RIGHT_CLICK);
var sprite = this.getDisplayObject();
sprite.addEventListener(MouseEvent.RIGHT_CLICK, doSomething);
}
</handler>
<method name="doSomething" args="p">
Debug.inspect(p);
</method>
</canvas>
At the moment I'm not willing to contribute any more code to OpenLaszlo, due to the fact that Laszlo and Critical Path have been disrespecting the community in the past 2 years. I might create a private branch of OpenLaszlo where I'll add new features and bug fixes, and maybe this can be turned into a version maintained by the community.
Therefore there is no way to use this example code with a released version or a nighly build of OpenLaszlo.

raju-bitter
- 8,906
- 4
- 42
- 53
-
What would it take to support Flash Player 11.2 with OpenLaszlo? Would it simply be sufficient to upgrade the Flex compiler version? – Sep 20 '12 at 22:12
-
See [this question](http://stackoverflow.com/questions/12527743/) for more details on how more recent Flash Player version (11.2+) could be targeted with OpenLaszlo. – raju-bitter Sep 23 '12 at 19:12
-
Thanks, it would be good to have that feature integrated into OpenLaszlo 5.0. But you are right, Laszlo doesn't seem to care about the open source community. – Sep 23 '12 at 21:51