Call it a feature? As soon as you click a button in a flash builder 4 project you get vertical and horizontal scrollbars.Not that there is much scrolling to do, about 2px. What you get to see is a dotted focus rect which fb4 insist to put around the entire page.

And this happens regardless whether you do it in spark or halo, with a button or toggelButton, on a group or canvas - I spent some hours of my life trying all combinations and variations which I could think of. Below is bare bones example of a minimal test.mxml which compiles both in Flex 3 and FlashBuilder 4:

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="" layout="absolute">
        <mx:Button label="Drück mich" />


Both have source view

testButton Flex3 (581 KB)
testButton FlashBuilder 4 (1,66MB)

Note the different sizes of flex3 and fb4 compiled file size.

There is a spark version of the thing as well:

testButton Fb4 Spark (1,22 MB)

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx=""
               xmlns:mx="library://" minWidth="1024" minHeight="768">
    <s:Group   id="myGroup"  >
        <s:Button  id="btn"  label="Drück mich" />


Trackback specific URI for this entry
    No Trackbacks


    No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.