very cool - thanks Deepa.

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam"
<[EMAIL PROTECTED]> wrote:
>
> Hi Tim -
>

>
> In Flex 2 you can set the color style on the MenuBar - that will
affect
> the text color of the top-level menubar items as well as the drop
down
> menus. To affect just the drop down menus, you can set the color
style
> on just the Menu component.
>

>
> Used in conjunction, you can achieve what you want:
>

>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
width="600"
> height="600" >
>

>
> <mx:Script>
>
> <![CDATA[
>

>
> private function setMenuColors(mb:MenuBar):void
>
> {
>
>       for (var i:int = 0; i < dp.children().length(); i++)
>
>       {
>
>             mb.getMenuAt(i).setStyle('color', 'blue');
>
>       }
>
> }
>

>
> ]]>
>
> </mx:Script>
>

>
> <mx:MenuBar id="mb" dataProvider="{dp}" showRoot="false"
color="red"
> creationComplete="setMenuColors(mb);" labelField="@label"/>
>

>
> <mx:XML id="dp">
>
>       <node label="root">
>
>             <node label="one">
>
>                   <node label="child" />
>
>             </node>
>
>             <node label="two">
>
>                   <node label="child" />
>
>             </node>
>
>             <node label="three">
>
>                   <node label="child" />
>
>             </node>
>
>       </node>
>
> </mx:XML>
>

>
> </mx:Application>
>

>
> -deepa
>
> ________________________________
>
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Wednesday, May 03, 2006 2:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] menuBar text color
>

>
> Is there a way to have different text color for a menuBar's top
item
> and drop-down items? extend? subclass?
>
> Thanks in advance,
> - Tim Hoff
>
>
>
>
>
> --
> 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
>
> Web site design development
> <http://groups.yahoo.com/gads?
t=ms&k=Web+site+design+development&w1=Web+
>
site+design+development&w2=Computer+software+development&w3=Software+
des
>
ign+and+development&w4=Macromedia+flex&w5=Software+development+best+p
rac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> 
>
> Computer software development
> <http://groups.yahoo.com/gads?
t=ms&k=Computer+software+development&w1=We
>
b+site+design+development&w2=Computer+software+development&w3=Softwar
e+d
>
esign+and+development&w4=Macromedia+flex&w5=Software+development+best
+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> 
>
> Software design and development
> <http://groups.yahoo.com/gads?
t=ms&k=Software+design+and+development&w1=
>
Web+site+design+development&w2=Computer+software+development&w3=Softw
are
>
+design+and+development&w4=Macromedia+flex&w5=Software+development+be
st+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> 
>
> Macromedia flex
> <http://groups.yahoo.com/gads?
t=ms&k=Macromedia+flex&w1=Web+site+design+
>
development&w2=Computer+software+development&w3=Software+design+and+d
eve
>
lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&
s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw> 
>
> Software development best practice
> <http://groups.yahoo.com/gads?
t=ms&k=Software+development+best+practice&
>
w1=Web+site+design+development&w2=Computer+software+development&w3=So
ftw
>
are+design+and+development&w4=Macromedia+flex&w5=Software+development
+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> 
>

>

>
> ________________________________
>
> 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]
subject=Unsubscribe>
>        
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>

>
> ________________________________
>






--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to