开发者

Change defined states via Actionscript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜