var myRightMenu:ContextMenu=new ContextMenu;/*使用构造函数new ContextMenu()创建名为myRightMenu的一个上下文菜单对象*/ myRightMenu.hideBuiltInItems();/*将新建的上下文菜单中内置菜单项隐藏("关于""设置"除外)*/ myRightMenu.builtInItems.print = true;//forwardAndBack、loop、play、print、quality、rewind、save 和 zoom。 this.contextMenu=myRightMenu;//将myRightMenu菜单对象替换根时间轴下原有菜单 var item:ContextMenuItem = new ContextMenuItem("晚晴工作室"); myRightMenu.customItems.push(item);