Flash Builder 4 output window too large
So the issue is that whenever I run the flash movie, the display in the browser (Chrome) ends up being like 30% larger than the browser 开发者_如何学JAVAis when fully maximized. In reality, it should be running in a 800x800px environment. I've tried messing with the stage size and doing things like setting it to FULL_SCREEN and NORMAL and that had no effect. However, attempting to compile the project through the command line with the mxmcl (although it gives different errors atm) show me that the window is properly sized at 800x800px, so it is obvious that the flash builder is the one that resizes it. Any ideas what this might be due to?
The default header for a flex app is:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="955" minHeight="600">
Notice the minWidth="955"
. That could be your culprit.
The generated HTML is normally based on your application tag. Try setting 100% for width/height
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" width="100%" height="100%">
If that doesn't work, you can modify the template directly under html-template directory (which is the way I prefer to do it) and leave the width/height out of the application tag.
精彩评论