3

有没有办法让 Adob​​e AIR 应用程序在启动时自行适应屏幕(最大化)?

4

2 回答 2

6

来自阿比拉什:

只需maximize();在应用程序创建完成函数中调用该函数即可。

来源: http ://groups.google.com/group/flex_india/browse_thread/thread/afd5a97aea768d52/59aabcf6a74171b9#59aabcf6a74171b9

于 2009-01-13T04:18:44.323 回答
1

将 creationComplete 事件添加到您的应用程序

   <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" 
                           xmlns:mx="library://ns.adobe.com/flex/mx" 
                           width="950" height="500"
                           showStatusBar="false"  
    creationComplete="winApp_creationCompleteHandler(event)">

然后添加最大化();创建完成事件的函数。

protected function winApp_creationCompleteHandler(event:FlexEvent):void
{

maximize();

}
于 2011-02-03T19:56:10.423 回答