Adobe Dreamweaver Forums



Last 10 THreads :         How to align XML loading text to right (Last Post : loki2357 - Replies : 7 - Views : 8 )           »          Why is this not working!!! (Last Post : mickknight - Replies : 9 - Views : 10 )           »          Clock .getUTC not working (Last Post : kglad - Replies : 1 - Views : 2 )           »          Sound.position (Last Post : kglad - Replies : 3 - Views : 4 )           »          Flex compiler in FlexBuilder and Flex SDK (Last Post : 2009 Matt - Replies : 2 - Views : 3 )           »          Flash Controls Not Displaying in Embedded File (Last Post : kglad - Replies : 3 - Views : 4 )           »          damn bugs again in CS4 (Last Post : xianFF0000 - Replies : 15 - Views : 65 )           »          ProgressEvent reporting incorrect properties? (Last Post : ErikMadsen - Replies : 0 - Views : 1 )           »          ProgressBar and myPlayer (Last Post : W_Bell - Replies : 2 - Views : 3 )           »          Controlling a virtual keyboard from Director MX 2004 (Last Post : RandallH - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags: , ,



Reply
  #1 (permalink)  
Old 09-02-2008, 04:14 PM
zz_james
 
Posts: n/a
Diggs:
Default 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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-02-2008, 07:17 PM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: LinkBar rollOverColor transparency

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>

Reply With Quote
  #3 (permalink)  
Old 10-04-2008, 05:55 AM
malachite1234
 
Posts: n/a
Diggs:
Default Re: LinkBar rollOverColor transparency

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!

Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:39 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk