Hi all,
I have a problem with SWFLoader: With the mainTest2.swf I want to load a
second swf, called external2.swf. If I resize the mainTest2, the external2
should resize, too. The content should be stretched - that does work. But if
I reduce the mainTest2 to a small size, at the right side and bottom side
the content will be cut off.

<http://apache-flex-development.2333347.n4.nabble.com/file/n56514/cutoff.jpg> 

Is this a bug in FlashPlayer or do I make a mistake?

Btw: If the second swf (with other code) comes from Flash CS6, it does work
in small sizes.

Both swf I build with Flex Builder 4.7 in Windows 7 as Flex Application.

*Source mainTest2.mxml:*

<?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/mx"
               width="100%" height="100%"
               initialize="init()">
    <fx:Script>
        
    </fx:Script>
   
    <s:Group id="all" width="100%" height="100%">
        <s:HGroup width="100%" height="100%" gap="0">
            <s:VGroup id="container" width="100%" height="100%" gap="0">
                <s:SWFLoader id="swf" width="100%" height="100%"
scaleContent="true" />
                <s:Button width="100%" height="1"/>
            </s:VGroup>
            <s:Button width="1" height="100%"/>
        </s:HGroup>
    </s:Group>
</s:Application>


*Source external2.mxml:*

<?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"
               width="600"
               height="300"
               >
    <s:Group width="100%" height="100%">
        <s:Rect width="100%" height="100%">
            <s:fill>
                <s:SolidColor color="0xE4E4E4" />
            </s:fill>
        </s:Rect>
        <s:HGroup width="100%" height="100%" verticalAlign="middle"
horizontalAlign="center">
            <s:Button label="Button6" width="100" height="100" />
        </s:HGroup>
    </s:Group>
</s:Application>




--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/SWFLoader-Content-cut-off-tp56514.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to