![]() |
![]() |
||||||
|
|||||||
| Tags: linkbar, rollovercolor, transparency |
![]() |
|
|||
|
Hi
I don't want a roll-over colour change in the back-ground of my linkbar. The linkbar is used on different colour backgrounds, so I can't simply set the rollOverColor to the same as the background. Is there any way of styling or over-riding the rollOverColor? Thanks in advance James |
| Sponsored Links |
|
|||
|
This works if you explicitly set the backgroundColor of the LinkBar:
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:LinkBar id="lb" borderStyle="solid" itemClick="navigateToURL(new URLRequest('http://www.adobe.com/' + String(event.label).toLowerCase()), '_blank');" backgroundColor="blue" rollOverColor="{lb.getStyle('backgroundColor')}" selectionColor="{lb.getStyle('backgroundColor')}"> <mx:dataProvider> <mx:String>Flash</mx:String> <mx:String>Director</mx:String> <mx:String>Dreamweaver</mx:String> <mx:String>ColdFusion</mx:String> </mx:dataProvider> </mx:LinkBar> <mx:LinkBar id="lb2" borderStyle="solid" itemClick="navigateToURL(new URLRequest('http://www.adobe.com/' + String(event.label).toLowerCase()), '_blank');" backgroundColor="purple" rollOverColor="{lb2.getStyle('backgroundColor')}" selectionColor="{lb2.getStyle('backgroundColor')}" > <mx:dataProvider> <mx:String>Flash</mx:String> <mx:String>Director</mx:String> <mx:String>Dreamweaver</mx:String> <mx:String>ColdFusion</mx:String> </mx:dataProvider> </mx:LinkBar> <mx:LinkBar id="lb3" borderStyle="solid" itemClick="navigateToURL(new URLRequest('http://www.adobe.com/' + String(event.label).toLowerCase()), '_blank');" backgroundColor="red" rollOverColor="{lb3.getStyle('backgroundColor')}" selectionColor="{lb3.getStyle('backgroundColor')}" > <mx:dataProvider> <mx:String>Flash</mx:String> <mx:String>Director</mx:String> <mx:String>Dreamweaver</mx:String> <mx:String>ColdFusion</mx:String> </mx:dataProvider> </mx:LinkBar> </mx:Application> |
|
|||
|
I'm trying to do the same thing, but can't use the above suggestion because the
background color is a gradient (thus using the background color as the rollover won't look right). Is there a way to override the rollOverColor to be transparent? I thought I could extend LinkBar, but can't find any functions in there that use the rollOverColor, so I'm not sure what function to override. Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise