The skins are great, but I’m most excited to start working with the components that don’t have skins. I’m excited about the way layout has been removed from the component logic and hope that I can spend a lot less time hacking apart Flex framework code and more time writing my own. I think spark has a pretty good re-do on a lot of existing MX components, but still being built on MX underneath I worry that we may have a way to go still.
Spark skinning and the new states are fantastic.
The following example shows how you can set the corner radius on a Halo MenuBar control in Flex 4 by creating a custom skin and setting the radiusX and radiusY properties.
Full code after the jump.
<?xml version=”1.0″ encoding=”utf-8″?>
<s:Application name=”Halo_MenuBar_cornerRadius_test”
xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:s=”library://ns.adobe.com/flex/spark”
xmlns:mx=”library://ns.adobe.com/flex/halo”>
<mx:ApplicationControlBar width=”100%” cornerRadius=”0″>
<mx:Form styleName=”plain”>
<mx:FormItem labal=”cornerRadius:”>
<s:HSlider id=”slider”
minimum=”0″
maximum=”{menuBar.height/2}”
value=”2″ />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar> Read more…
home |
about | submit an Application | tags | site map | contact us
© Learn Flex 2008, All rights Reserved.

