0

如何在我的 Flex 应用程序中启用 nativ Mac OS X 全屏功能(包括右上角的按钮)?

4

1 回答 1

0

我相信这个问题有你的答案:

假设您在“使用整个显示器”中指的是全屏:

调用 stage.displayState = StageDisplayState.FULL_SCREEN; 会将您的 Flash 电影设置为全屏模式(前提是在嵌入 html 页面的 object/embed 标记中已将 allowFullScreen 参数设置为 true)。

如果您正在构建 AIR 应用程序;阅读这篇关于使用全屏功能的文章。它还使用相同的 displayState 属性。

// Enter Fullscreen Interactive State
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
// Enter Standard Fullscreen State
stage.displayState = StageDisplayState.FULL_SCREEN;
// Enter Normal State
stage.displayState = StageDisplayState.NORMAL;
于 2012-11-06T15:30:50.890 回答