[英]as3/Flex: if SWF is bigger than screen, FlashDebugger cuts off the content. Firefox doesn't. Why?
I'm displaying a 720x1280 image in a 720x1280 SWF. 我正在720x1280 SWF中显示720x1280图像。 My screen is 1366x768.
我的屏幕是1366x768。
The visualization is awful since my image is cut off (although internally the image's size is still 720x1280 when I do trace() ). 由于我的图像被切除,因此可视化效果非常糟糕(尽管在内部执行trace()时,图像的大小仍为720x1280)。
Everything is suitably displayed on Firefox. 一切都可以在Firefox上适当显示。
Why? 为什么? Thanks.
谢谢。
Maybe this isn't the right solution, but it could be helpful for anyone else: 也许这不是正确的解决方案,但对其他任何人都可能有帮助:
My init() function checks if the screen resolution is large enough to display my application properly: 我的init()函数检查屏幕分辨率是否足够大以正确显示我的应用程序:
private function init():void
{
if(Capabilities.screenResolutionX<=1023 || Capabilities.screenResolutionY<=767)
{
Alert.show("In order to view this application properly, " +
"please adjust your screen resolution to 1024 x 768 or greater.", "Atention");
}
}
I hope you find it useful. 希望对你有帮助。
*Sorry for the bad english. *对不起,英语不好。
尝试检查是否将嵌入SWF的HTM设置为使用浏览器窗口宽度和高度的100%
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.