Ok, I think the problem I am up against here is that the children
(Links) are inheriting the parent LinkBar's style on textDecoration.
Could someone tell me how to override the style only on certain Link
Objects, maintaining the parent's style on the other ones? I am
setting a new stylename on the children I want to change, but the
change doesn't happen. When I do this on a separate Link, the style
changes as expected, but if I do it on a child Link of the LinkBar, it
does not change.

Please, please give me some suggestions as this simple thing is
driving me nutty!

Thanks,
Libby

--- In [email protected], "Andrew Spaulding" <[EMAIL PROTECTED]>
wrote:
>
> Hi Libby,
> 
> If you've managed to control the Link and hijack the click event etc, 
> why don't you try Link.setStyle("textDecoration", "underlined");
> 
> you will have to build the logic to set the textDecoration back 
> to "none" when another link is clicked, but this will get you 
> started ;-)
> 
> cheers,
> 
> Andrew Spaulding
> Adobe Systems
> 
> 
> --- In [email protected], "Libby" <[EMAIL PROTECTED]> wrote:
> >
> > I have extended the LinkBar class and dynamically create children 
> from
> > Link objects within it. When a Link is clicked, I would like to have
> > the color change and stay changed, or some other change occur so I
> > know which Link was clicked. Underlining the Label text would be 
> fine
> > if I could figure out how to do it. I have tried
> > Link.setStyle("selected","true");
> > and messed with the entries below in my styleSheet, along with many
> > other attempts.
> > selection-color:#00FF00;
> > selected-fill-colors: #00FF00;
> > symbol-background-pressed-color:#FF0000;
> > text-selected-color:#FF00FF; 
> > 
> > Could someone please give me some idea of how to do this? 
> > 
> > Thanks,
> > Libby
> >
>






--
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