易截截图软件、单文件、免安装、纯绿色、仅160KB

flex air 显示全屏窗口


将 Stage 的 displayState
属性设置为 StageDisplayState.FULL_SCREEN_INTERACTIVE
会将窗口置于全屏模式,在此模式下允许
键盘输入(在浏览器中运行的 SWF 内容中,不允许键盘输入)。若要退出全屏模式,用户需要按 Esc 键。
例如,以下 Flex 代码定义用于设置简单全屏端点的简单 AIR 应用程序:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
applicationComplete="init()" backgroundColor="0x003030" focusRect="false">
<mx:Script>
<![CDATA[
private function init():void
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
focusManager.setFocus(terminal);
terminal.text = "Welcome to the dumb terminal app. Press the ESC key to exit..\n";
terminal.selectionBeginIndex = terminal.text.length;
terminal.selectionEndIndex = terminal.text.length;
}
]]>
</mx:Script>
<mx:TextArea
id="terminal"
height="100%" width="100%"
scroll="false"
backgroundColor="0x003030"
color="0xCCFF00"
fontFamily="Lucida Console"
fontSize="44"/>
</mx:WindowedApplication>
 


相关文档:

Flex坐标系统及转换

flash和flex针对不同的目的,提供了3种不同的坐标系。
          全局的就是(stage级别的)
          本地坐标系(组件级别的)
          内容坐标系(相对于本地坐标系说的 ......

通过页面传递参数到flex中的几种方法

1.在<Object>和<embed>中设置flashVars参数,例如:
<object id=’mySwf’ classid=’clsid:D27CDB6E-AE6D-11cf-96B8-444553540000′ codebase=’http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab’ height=’100%’ width=’100%&rs ......

用FLEX如何取浏览器地址栏中的域名信息?

用FLEX如何取浏览器地址栏中的域名信息?我查找到两种方法:
第一种方法是用ExternalInterface.call('window.location.href.toString'),它的值就是地址栏中的域名
有以下几点需要注意:
1.当Flash和加载它的网页不同域时,需要在网页在 PARAM 或 EMBED 标签中进行设置AllowScriptAccess 为“always”
关于 ......

关于flex中tree的事件,展开事件

(1)tree点击事件public function handleList(ev:ResultEvent)
{
sourceList=ev.result as ArrayCollection;
}
private function tree_itemClick(evt:ListEvent):void {
var item:Object = Tree(evt.currentTarget).selectedItem;
if (pmtree.dataDescriptor.isBranch(item)) { ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号