zoukankan      html  css  js  c++  java
  • flash全屏代码

    //打开就全屏Stage.focus设置焦点
    fscommand("fullscreen","true");//关闭代码fscommand("quit");
    //或者添加右键菜单控制:
    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;
    
  • 相关阅读:
    小数的进制转换
    水题 O
    水题 J
    水题T,二进制转16进制
    水题B
    水题C
    HDU 2042
    HDU 2041
    Index For SQL Server
    Learning Note For Angular
  • 原文地址:https://www.cnblogs.com/602147629/p/1930269.html
Copyright © 2011-2022 走看看