我是靠谱客的博主 无语洋葱,最近开发中收集的这篇文章主要介绍flex web 全屏 例子 不确定 ria,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="init(event)">

<mx:Script>

<![CDATA[

import flash.display.StageDisplayState;

private function init(evt:Event):void {

/* Set up full screen handler. */

Application.application.stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenHandler);

dispState = Application.application.stage.displayState;

}

private function fullScreenHandler(evt:FullScreenEvent):void {

dispState = Application.application.stage.displayState + " (fullScreen=" + evt.fullScreen.toString() + ")";

if (evt.fullScreen) {

/* Do something specific here if we switched to full screen mode. */

} else {

/* Do something specific here if we switched to normal mode. */

}

}

private function toggleFullScreen():void {

try {

switch (Application.application.stage.displayState) {

case StageDisplayState.FULL_SCREEN:

/* If already in full screen mode, switch to normal mode. */

Application.application.stage.displayState = StageDisplayState.NORMAL;

break;

default:

/* If not in full screen mode, switch to full screen mode. */

Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;

break;

}

} catch (err:SecurityError) {

// ignore

}

}

]]>

</mx:Script>

<mx:String id="dispState" />

<mx:Label text="width={Application.application.width}" />

<mx:Label text="height={Application.application.height}" />

<mx:Label text="displayState={dispState}" />

<mx:Button label="Toggle fullscreen" click="toggleFullScreen()" />

</mx:Application>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 

 

Served from: blog.minidx.com @ 2011-01-27 14:37:50 -->

最后

以上就是无语洋葱为你收集整理的flex web 全屏 例子 不确定 ria的全部内容,希望文章能够帮你解决flex web 全屏 例子 不确定 ria所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(42)

评论列表共有 0 条评论

立即
投稿
返回
顶部