[英]as3/Flex: if SWF is bigger than screen, FlashDebugger cuts off the content. Firefox doesn't. Why?
我正在720x1280 SWF中顯示720x1280圖像。 我的屏幕是1366x768。
由於我的圖像被切除,因此可視化效果非常糟糕(盡管在內部執行trace()時,圖像的大小仍為720x1280)。
一切都可以在Firefox上適當顯示。
為什么? 謝謝。
也許這不是正確的解決方案,但對其他任何人都可能有幫助:
我的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");
}
}
希望對你有幫助。
*對不起,英語不好。
嘗試檢查是否將嵌入SWF的HTM設置為使用瀏覽器窗口寬度和高度的100%
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.