So in AS2 you could add a contextMenu for the whole movie like this:
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
_root.menu = newMenu;
There is no _root in AS3. So in my Document class I tried this:
stage.contextMenu = new ContextMenu();
Which results in this error:
Error: Error #2071: The Stage class does not implement this property or method.
at Error$/throwError()
at flash.display::Stage/set contextMenu()
I have also tried just adding items to stage.contextMenu but that didn’t work either.
I also added a custom context menu to my Document class but that doesn’t work for the whole movie.
So does anyone know if there is something I can do to set the contextMenu for the whole movie?