简体   繁体   中英

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. My screen is 1366x768.

The visualization is awful since my image is cut off (although internally the image's size is still 720x1280 when I do trace() ).

Everything is suitably displayed on 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:

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%

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM