wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

flexlib 2.4 in flex4 sdk #270

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i want to use flexlib in flex 4 sdk to create canvas button for multiline
button.
But when in flex 4 it don't work.
It just show the default button style.
It just ignore the Label tag inside the canvasbutton.
What can i do?

<flexlib:CanvasButton styleName="upperButton" width="150" height="100"
x="250" y="10">
        <mx:VBox width="100%" height="100%" verticalGap="0"
                 paddingTop="10" paddingBottom="10">
            <mx:Label text="Open New" textAlign="center" width="100%" 
                     fontSize="22" fontWeight="bold"/>
            <mx:Label text="Projects" textAlign="center" width="100%" 
                     fontSize="22" fontWeight="bold"/>
        </mx:VBox>
</flexlib:CanvasButton>

Original issue reported on code.google.com by alamin...@gmail.com on 31 Dec 2009 at 6:25

GoogleCodeExporter commented 8 years ago
i had similar problems when working with Flash Builder . 
In Flash Builder you are using sdk 4.0.0 as default ,  instead u use the latest 
release 
of flex 4 sdk .[ i download  the 13875 build ] and it worked

Original comment by mahesh.d...@gmail.com on 26 Feb 2010 at 11:51

GoogleCodeExporter commented 8 years ago
I guess you should be using skins for achieving this in flex4.
It'll be a lot more robust and you won't have a dependency on an external class.
I'm not sure we want to spin our wheels right now to fix a feature that's built 
in the sdk.

Now IIRC, the sample works fine, so I'm not sure there is a problem in the 
first place.

Marking as accepted until further investigation.

Original comment by olarivain@gmail.com on 28 Mar 2010 at 10:07