Adobe AIR 应用程序自行适应屏幕(最大化)

发布于 2024-07-12 06:56:49 字数 47 浏览 12 评论 0原文

有没有办法制作 Adob​​e AIR 应用程序 适合屏幕(最大化) 推出?

Is there a way to make an Adobe AIR app
fit screen(maximize) by itself when it's
launched?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

水溶 2024-07-19 06:56:49

来自 Abhilash :

只需在应用程序创建中调用 maximize(); 函数
功能齐全。

来源 :
http://groups.google.com/group/flex_india/ browser_thread/线程/afd5a97aea768d52/59aabcf6a74171b9#59aabcf6a74171b9

From Abhilash :

Just call the maximize(); function in the Application creation
Complete function.

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

凹づ凸ル 2024-07-19 06:56:49

添加一个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)">

然后添加maximize(); 函数创建完成事件。

protected function winApp_creationCompleteHandler(event:FlexEvent):void
{

maximize();

}

Add a creationComplete event to your application

   <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)">

Then Add the maximize(); function to the creation complete event.

protected function winApp_creationCompleteHandler(event:FlexEvent):void
{

maximize();

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文