FORUMS: list search recent posts

How to disable the context menu in AS 3.0

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Meg Kikuchi
How to disable the context menu in AS 3.0
on Mar 8, 2008 at 4:19:21 pm

How would one convert the following ActionScript 2.0 to 3.0?

var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;



Return to posts index

Ross Gerbasi
Re: How to disable the context menu in AS 3.0
on Mar 11, 2008 at 3:11:03 pm

I think is what your looking for.

import flash.ui.ContextMenu;
var myContextMenu:ContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
this.contextMenu = myContextMenu;

-ross



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]