Thanks Philippe,
As I stated I tried what you did and for me it didn't work.
I almost flipped when I saw what you wrote and found my mistake.
To change the tab style I used:
setStyle('corner-radius',1);
instead of 
setStyle('cornerRadius',1);

ho my, oh my,
This would have saved me a couple of hours but at least its documented
in the group now :)

--- In [email protected], "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
> You are welcome.
>  
> It was missing because I removed my magic debug function ;)
>  
> function traceObj(obj){
>    var t = '';
>    for(var i in obj){
>     t+= i + ' : ' + obj[i] + '\n';
>    }
>    mx.controls.Alert.show(t)
> }
> 
> ]]>
>  
> thanks to zipo13 for bringing up the tabBar property ;)
>  
> Philippe Maegerman
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Sreejith Unnikrishnan
> Sent: mardi 26 juillet 2005 13:00
> To: [email protected]
> Subject: Re: [flexcoders] Re: TabNavigator tabs style
> 
> 
> Hi Philippe, thats damn good!
> That is all we need :-) No, I dont intend to change one tab :-)
> 
> Thanks a lot.
> Sree
> 
> PS: You have an unterminated CDATA section in the code.
> 
> Philippe Maegerman wrote: 
> 
>       I couldn't manage to do it with styles, but came up with some
actionscript ;)
>        
>       It will style all the TabNavigator tabs, but you could easily
changeit to update only one tab by passing it's index as an argument ;))
>        
>       <?xml version="1.0" encoding="utf-8"?>
>       <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
>       <mx:Script>
>       <![CDATA[
>       function setTabStyle(tabObj, cRadius){
>        for(var i = 0; i < tabObj.numChildren; i++){
>        tabObj.getChildAt(i).setStyle('cornerRadius', cRadius);
>        }
>       }
>       
> 
> ]]>
> 
> 
>       </mx:Script>
>       <mx:TabNavigator creationComplete="setTabStyle(event.target.tabBar,
10);">
>        <mx:HBox label="tab1" width="200" height="200"></mx:HBox>
>        <mx:HBox label="tab2" width="200" height="200"></mx:HBox>
>       </mx:TabNavigator>
>       <mx:TabNavigator creationComplete="setTabStyle(event.target.tabBar,
20);">
>        <mx:HBox label="tab1" width="200" height="200"></mx:HBox>
>        <mx:HBox label="tab2" width="200" height="200"></mx:HBox>
>       </mx:TabNavigator>
>       </mx:Application>
>        
>       Philippe Maegerman
>       Web developer
>       +32 2 400 40 39
>       +32 472 35 28 10
>       Avoir des rĂªves, c'est continuer d'exister... 
>        
> 
> ________________________________
> 
>       From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Sreejith Unnikrishnan
>       Sent: mardi 26 juillet 2005 12:19
>       To: [email protected]
>       Subject: Re: [flexcoders] Re: TabNavigator tabs style
>       
>       
>       Hi,
>       
>       You did not say whether you tried and it worked :-)
>       
>       Run thecode below. Look out for the following.
>       
> 
>       *       Corner-radius is the radius applied to the Navigator and NOT the
tabs (desired) when applied using styleName
>               
>       *       Comment and UnComment the Tab style to see the difference. All
the tabs have a corner-radius of 0. 
> 
>       Now back to the question, if I want to assign corner-radius to only
ONE tabNavigator, how do I do it!
>       
>       ======================  CODE TO EXPERIMENT
===============================
>       <?xml version="1.0" encoding="utf-8"?>
>       <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
<http://www.macromedia.com/2003/mxml>  width="100%" height="100%">
>       <mx:Style>
>       MyTabNavigator {
>          tab-height: 30;
>          tab-width: 87;
>          border-color: #cccccc;
>          background-color:#FF0000;
>          corner-radius:16;
>          }
>       
>       MyTab {
>          corner-radius: 8;
>          fill-colors: #003366, #f6eeee;
>          selected-fill-colors: #0033cc, #ffffff;
>          border-color: #000000;
>          color: #000000;
>          background-color:#0033FF;
>          }
>       
>       /*   
>       Tab {
>          corner-radius: 0;
>          }   
>       */
>       
>       </mx:Style>
>       
>       <mx:VBox width="100%" height="100%">
>       <mx:TabNavigator width="100%" height="50%" styleName="MyTabNavigator">
>       <mx:HBox label="Tab title 1"></mx:HBox>
>       <mx:HBox label="Tab title 2"></mx:HBox>
>       </mx:TabNavigator>
>       <mx:TabNavigator width="100%" height="50%" styleName="MyTab">
>       <mx:HBox label="Tab title 1" ></mx:HBox>
>       <mx:HBox label="Tab title 2"></mx:HBox>
>       </mx:TabNavigator>
>       </mx:VBox>
>       </mx:Application>
>       
>       ============================= END  OF CODE
======================================
>       
>       
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> Computer software testing
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+testing&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg>
        Macromedia flex
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=dAUcEV7do91-wrRtVS641g>
        Development
<http://groups.yahoo.com/gads?t=ms&k=Development&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=AlxNUQBOI7Io7S7nhmxV0Q>
        
> Software developer
<http://groups.yahoo.com/gads?t=ms&k=Software+developer&w1=Computer+software+testing&w2=Macromedia+flex&w3=Development&w4=Software+developer&c=4&s=93&.sig=QWIit8JayomoIHLVkV3FDg>
        
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders
<http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have received this email in error please send it back to the person
that sent it to you. Any views or opinions presented are solely those
of author and do not necessarily represent those the Emakina Company.
Unauthorized publication, use, dissemination, forwarding, printing or
copying of this email and its associated attachments is strictly
prohibited.
> 
> We also inform you that we have checked that this message does not
contain any virus but we decline any responsability in case of any
damage caused by an a non detected virus.
> ------------------------------------------------------------------




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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