Thanks alot Manish for the Tab style, that's exactly what I was
looking for...

About the Icon: the following mxml app have three buttons, the first
one changes the icon of the first tab in a binding way, the second in
a direct way, and the third allows me to control the icon's value...

While both binding & direct way of changing value do update icon's
property, there is no visual impact of the update onscreen... Any idea
on what to trigger to force icon's visual-refresh ???

Thanks, Romain

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
width="100%" height="100%" marginBottom="0" marginLeft="0"
marginRight="0" marginTop="0">
<mx:Style>
Tab {
text-align: left;
}
</mx:Style>
        <mx:VDividedBox width="100%" height="100%">
                <mx:TabNavigator id="curTabBar" width="100%" height="50%"
tabWidth="200"  historyManagement="false">
                        <mx:HBox label="Client" id="clientTab" width="100%" 
height="100%"
icon="{tab1Light}" marginBottom="5" marginLeft="5" marginRight="5">
                        </mx:HBox>
                        <mx:VBox label="Funds" width="100%" height="100%" 
icon="{tab2Light}">
                        </mx:VBox>
                        <mx:VBox label="Investment" width="100%" height="100%"
icon="{tab3Light}">
                        </mx:VBox>
                </mx:TabNavigator>
                <mx:HBox width="100%">
                <mx:Button label="indirect" click="tab1Light = greenLight"/>
                <mx:Button label="direct" click="clientTab.icon = greenLight"/>
                <mx:Button label="show value" click="alert(clientTab.icon)"/>
                </mx:HBox>
        </mx:VDividedBox>
        <mx:Script>
        <![CDATA[
                [Embed(source="WEB-INF/resources/images/greenlight.GIF")]
                private static var greenLight:String;
                [Embed(source="WEB-INF/resources/images/redlight.GIF")]
                private static var redLight:String;
                private var tab1Light:String = redLight;
                private var tab3Light:String = greenLight;
        ]]>
        </mx:Script>
</mx:Application>





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to