【发布时间】:2010-12-07 14:23:14
【问题描述】:
考虑以下 Flex 代码:
private function fullScreenHandler(evt:FullScreenEvent):void {
if (evt.fullScreen) {
viewstack.selectedIndex = 2;
objectInViewStack2.width = [code to detect width when in full screen mode];
objectInViewStack2.height = [code to detect height when in full screen mode];
} else {
viewstack.selectedIndex = 1;
}
}
我有一个带有两个包含画布的视图堆栈。在正常模式下使用画布 1,在全屏模式下使用画布 2。
要正确调整objectInViewStack2 的大小,我需要知道在全屏模式下屏幕的大小。
解决给定问题的正确方法是什么?
【问题讨论】:
标签: apache-flex flash actionscript-3