Adobe Air - 全屏打开应用程序
我使用 Flash CS 5 创建了一个 Air 桌面应用程序。通常 Windows (XP) 会使用最新设置的大小和位置打开应用程序(如 Firefox)。 对于我安装的 Air 应用程序,它始终只是默认应用程序。
如何以最新使用的尺寸和位置启动它?
谢谢。 乌里
I created an Air desktop app with Flash CS 5. Usually Windows (XP) is opening an application (like Firefox) with the latest set size and position.
For my installed Air app it's always just the default one.
How to start it with the latest used size and position?
Thanks.
Uli
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
希望这对您有用:
http://cookbooks.adobe.com/post_Using_the_FullScreen_functionity_in_AIR-8004.html< /a>
http://blog.ochodurando.com/2010/04/adobe-空气电子全屏/
hope this will work for you:
http://cookbooks.adobe.com/post_Using_the_FullScreen_functionality_in_AIR-8004.html
http://blog.ochodurando.com/2010/04/adobe-air-e-fullscreen/
您需要在某个地方保存一条记录,以记住窗口的大小以及可能的位置。如果您的应用程序有首选项文件,那么这将是存储该信息的理想位置。然后,每当您的应用程序启动时,它都会检查此信息并在找到任何值时调整窗口大小。
大多数流行的程序都包含此功能(甚至不要提及它,因为它是非常基本的 UI),但它是有意完成的,而不是作为每个应用程序的默认设置。因此,如果你想要它,你必须将它编程进去。
You need to save a record somewhere that remembers the window's size, and possibly position. If your app has a preferences file, this would be an ideal place to store that information. Then, whenever your app starts, it checks for this information and resizes the window if any values are found.
Most popular programs include this feature (and don't even mention it, since it's pretty basic UI), but it's done intentionally and not as a default for every application. Thus if you want it, you have to program it in.
您可以读取和写入 application.xml。你会发现那里和节点。
Adobe 限制对应用程序目录的写入访问,但如果您不想在 app-storage:/ 文件夹中创建单独的配置文件(当然这是首选),则此技巧很有用。
You can read and write to application.xml. You'll find there and nodes.
Adobe restrict writing access to application diractory but this trick is useful if you don't want to create a separate config file in app-storage:/ folder, which is of course prefered.