Flex全屏模式 [英] Flex full screen mode

查看:32
本文介绍了Flex全屏模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 flex 新手.我在 flex 3. 我的布局容器类型中遇到了全屏问题,如下所示.

I'm new in flex. I faced problem to make full screen in flex 3.My layout container type like below.

<mx:Application >
<mx:Panel>
<mx:ViewStack>

<mx:VBox >
    <mx:VBox >
        <mx:Canvas >
            <mx:HBox width="300" height="300">      

            </mx:HBox>

        </mx:Canvas>
    </mx:VBox>
</mx:VBox>
</mx:ViewStack> 
</mx:Panel>
</mx:Application>

容器的宽度和高度将像上面一样固定.然后当我单击全屏按钮时,它将是全屏模式.请帮助我提供示例和教程.

the container width and height will be fixed like above.Then when i click a button full screen it will be full screen mode. Please help me with example and tutorial.

最好的敬意.马赫迪

推荐答案

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

Assuming you are referring to full screen as in 'use the whole monitor':

调用 stage.displayState = StageDisplayState.FULL_SCREEN; 会将您的 Flash 电影设置为全屏模式(前提是 allowFullScreen 参数已设置为 true 在嵌入 html 页面的 object/embed 标签中).放大 hbox(更改其宽度/高度),使其占据整个可用空间.

Calling stage.displayState = StageDisplayState.FULL_SCREEN; will set your flash movie to full screen mode (provided that the allowFullScreen parameter has been set to true in the object/embed tags of the embedding html page). Scale up the hbox (change its width/height) so that it occupies the whole space available.

这篇关于Flex全屏模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆