在as3中设置窗口初始宽度和高度
我正在开发 Flex 移动应用程序,我想在 as3 中设置初始窗口宽度和高度。当我的应用程序在桌面上运行时,我想检测屏幕分辨率并将其设置为窗口边界,类似这样 this.width = Capability.screenresolutionX this.height = Capability.screenresolutionY
谢谢
I am working on a Flex mobile application and I want to set initial windows width and height in as3. When my app runs on Desktop, I want to detect screen resolution and set it to windows bounds, something like that
this.width = Capabilities.screenresolutionX
this.height = Capabilities.screenresolutionY
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将 NativeWindow 的宽度和高度属性设置为 Capabilties.screenResolutionX 和 Capability.screenResolutionY
You can set the width and height properties of a NativeWindow to Capabilities.screenResolutionX and Capabilities.screenResolutionY