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="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Canvas>
        <mx:Button label="Drück mich" />
    </mx:Canvas>

</mx:Application>

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="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
    <s:Group   id="myGroup"  >
        <s:Button  id="btn"  label="Drück mich" />
    </s:Group>
</s:Application>





Trackbacks


Trackback specific URI for this entry
    No Trackbacks

Comments


    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.
CAPTCHA