Fullscreen Flash (as3)
[ 2009-06-30 16:34:42 | Author: liuhuan ]
Remind that the displayState should only be changed when there's any keyboard or mouse input in flash.
mDisplayStateSwitcher.addEventListener(MouseEvent.MOUSE_DOWN,toggleSwitch);
function toggleSwitch(e:MouseEvent):void {
if (stage.displayState == "normal") {
stage.displayState="fullScreen";
} else {
stage.displayState="normal";
}
}
function toggleSwitch(e:MouseEvent):void {
if (stage.displayState == "normal") {
stage.displayState="fullScreen";
} else {
stage.displayState="normal";
}
}
[Last Modified By liuhuan, at 2009-06-30 16:37:55]
Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=994
There is no comment on this article.
You can't post comment on this article.