Skip to content

Instantly share code, notes, and snippets.

@trongthanh
Created May 4, 2011 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongthanh/954886 to your computer and use it in GitHub Desktop.
Save trongthanh/954886 to your computer and use it in GitHub Desktop.
Create Flash context menu
public function createContextMenu(versionString: String): void {
if (!contextMenu) contextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
var versionMenu: ContextMenuItem = new ContextMenuItem("v." + versionString, false, false);
contextMenu.customItems = [versionMenu];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment