flash 怎么全屏播放
1个回答
展开全部
添加代码,打开时就是全屏fscommand("fullscreen","true");
或者添加右键菜单控制:
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var item:ContextMenuItem = new ContextMenuItem("全屏");
myMenu.customItems.push(item);
function fullScreen(evt:ContextMenuEvent):void {
if (item.caption == "全屏") {
fscommand("fullscreen","true");
item.caption = "退出全屏";
} else {
fscommand("fullscreen","false");
item.caption = "全屏";
}
}
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,fullScreen);
contextMenu = myMenu;
或者添加右键菜单控制:
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var item:ContextMenuItem = new ContextMenuItem("全屏");
myMenu.customItems.push(item);
function fullScreen(evt:ContextMenuEvent):void {
if (item.caption == "全屏") {
fscommand("fullscreen","true");
item.caption = "退出全屏";
} else {
fscommand("fullscreen","false");
item.caption = "全屏";
}
}
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,fullScreen);
contextMenu = myMenu;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询