开发者

Change defined states via Actionscript

开发者 https://www.devze.com 2023-03-21 10:17 出处:网络
I use states in a Flex application to switch from normal to fullscreen view. These states are defined in mxml and in a specific tag:

I use states in a Flex application to switch from normal to fullscreen view. These states are defined in mxml and in a specific tag:

<local:RSVideo 
            id="video" 
            width.normal="534" 
            height.normal="300"
            width.fullScreen="100%"
            height.fullScreen="100%"

        />

How can i change the width.fullscreen & height.fullscreen in the AS Sourcecode? I need the dimension of the display that are computed at runtime.

Th开发者_高级运维anks in advance


i think, i found the solution:

<local:RSVideo 
        id="video" 
        width.normal="534" 
        height.normal="300"
        width.fullScreen="{Capabilities.screenResolutionX}"
        height.fullScreen="{Capabilities.screenResolutionY}"

    />

Thanks for reading my question. If you got another solution. Please, let me know.

0

精彩评论

暂无评论...
验证码 换一张
取 消