REMOVING THE AWAY3D.COM CONTEXT MENU!!?

Software: Away3D 4.x

Lucid, Member
Posted: 04 April 2013 12:08 PM   Total Posts: 93

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?

 

   

Avatar
Fabrice Closier, Administrator
Posted: 04 April 2013 12:20 PM   Total Posts: 1265   [ # 1 ]

A. I don’t want this.
B. Getting rid of it doesn’t appear to be a straightforward matter.

A: sure
B: is the following not straightforward enough?
view.rightClickMenuEnabled = false;

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X