Fullscreen Flash (as3)

[ 2009-06-30 16:34:42 | Author: liuhuan ]
Font Size: Large | Medium | Small
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";
  }
}
[Last Modified By liuhuan, at 2009-06-30 16:37:55]
Comments Feed 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.