zoukankan      html  css  js  c++  java
  • Flex AIR加载时全屏显示

    注意 creationComplete 调用的方式。


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

    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

    xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="callLater(FullScreen)"

    xmlns:mx="library://ns.adobe.com/flex/mx" >

    <fx:Script>

    <![CDATA[

    import mx.events.FlexEvent;

    protected function FullScreen():void

    {

    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

    }

    ]]>

    </fx:Script>

    <s:Group width="100%" height="100%">

    <s:Rect width="100%" height="100%">

    <s:fill>

    <s:SolidColor color="0xFF0000"/>

    </s:fill>

    </s:Rect>

    <s:VGroup width="100%" height="100%" horizontalAlign="center" verticalAlign="middle">

    <s:Label text="请输入密码"/>

    <s:TextInput />

    </s:VGroup>

    </s:Group>


    </s:WindowedApplication>


  • 相关阅读:
    敌兵布阵
    Points on Cycle
    Hero
    E~最少拦截系统
    C
    A
    J
    H
    G
    A
  • 原文地址:https://www.cnblogs.com/suenihy/p/3100917.html
Copyright © 2011-2022 走看看