The Away3D API automatically adds a context menu item labeled “Away3D.com v4.1.0” with a link to Away3D.com.
A. I don’t want this.
B. Getting rid of it doesn’t appear to be a straightforward matter.
This code does not work!?
private function context():void{
var menu:ContextMenu = new ContextMenu;
menu.hideBuiltInItems();
var test:ContextMenuItem = new ContextMenuItem (“Test”);
test.separatorBefore = true;
menu.customItems.push(test);
this.contextMenu = menu}
So, not only does this standard code not work but it doesn’t get rid of your forced context menu item.
How do I get rid of it?