function toggleFullScreenMode(e:MouseEvent):void {
if (viewingFullScreen==false) {
viewingFullScreen=true;
navsNorthMultiPage_mc.tween_mc.eastButtons_mc.fullScreenAnim_mc.gotoAndPlay("full");
navsSouthMultiPage_mc.tween_mc.eastButtons_mc.fullScreenAnim_mc.gotoAndPlay("full");
stage.displayState="fullScreen";
} else {
viewingFullScreen=false;
navsNorthMultiPage_mc.tween_mc.eastButtons_mc.fullScreenAnim_mc.gotoAndPlay("out");
navsSouthMultiPage_mc.tween_mc.eastButtons_mc.fullScreenAnim_mc.gotoAndPlay("out");
stage.displayState="normal";
}
}
Monday, February 9, 2009
AS3 full screen mode
Heres a function to toggle full screen mode using AS3. Note that in fullscreen mode that only the "non-printing" keys work (arrows, shift, etc).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment