Flash AIR 全屏 屏蔽ESC
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.system.fscommand;
import flash.display.StageDisplayState;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
/**
* ...
* @author LittleSpace
*/
public class Main extends Sprite
{
public function Main ()
{
mc.addEventListener (MouseEvent.MOUSE_DOWN, mouseDownHandler);
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
stage.addEventListener ( KeyboardEvent.KEY_DOWN, onKeyDowns );
}
private function mouseDownHandler(e)
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
protected function onKeyDowns (e:KeyboardEvent):void
{
if (e.keyCode == Keyboard.ESCAPE)
{
e.preventDefault ();
}
}
}
}
相关文档:
Ubuntu的firefox的flash乱码的解决:
修改/etc/fonts/conf.d/49-sansserif.conf文件
sudo gedit
/etc/fonts/conf.d/49-sansserif.conf
这个是原文件:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has n ......
一款媲美FLASH的图片交替效果-网页特效-www.qpsh.com
Loading...
m00=document.getElementById("imgsrc").getElementsByTagName("img");m01=m00.length;function images_loading_bar(){m02=0;for(i=0;i ......
最近几天,跟一些网友谈论的时候,从他们的口中里面得知的消息,他们对flash未来存在担忧,表示会放弃这种技术转向其他技术。听到这样的话,我开始有点不解。为什么会这样呢?曾经一直坚持了一个信念,反而因为一点事情就退缩?事情有他的原因,根外国媒体报道的信息,微软IE9将不支持flash,这样消息一来激起 ......
1。先下载flash player的xpi插件
http://fpdownload.macromedia.com/get/flashplayer/xpi/current/flashplayer-linux.xpi
2。解压缩一下,然后把plugins这个文件夹拷贝到chrome的安装目录(/opt/google/chrome)。
3。再在桌面上图标属性里面增加一个启动参数。
/opt/google/chrome/google-chrome %U --enable-plu ......
Ubuntu中有个历史遗留问题——Flash中的中文只能显示方框,其原因为字体配置的问题。解决办法如下:
终端中输入:
cd /etc/fonts/conf.d/
sudo gedit 49-sansserif.conf
打开后,将里面的两个sans-serif替换为sans serif,即将短横替换为空格。保存退出即可。 ......