I'm not quite sure I understand what your query is, but... If what you are
trying to do is have the textDecoration that is applied on the dataProvider
to a LinkBar carry over to the LinkBar, you're out of luck.

Like this:
<?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
        <mx:Panel title="Link Bar Panel">
            <mx:LinkBar dataProvider="{ myStack }" textDecoration="none" />
            <mx:ViewStack id="myStack">
                <mx:HBox label="tab 1" textDecoration="underline">
                    <mx:Text text="Text in 1" textDecoration="underline" />
                </mx:HBox>
                <mx:HBox label="tab 2" textDecoration="underline">
                    <mx:Text text="Text in 2" />
                </mx:HBox>
                <mx:HBox label="tab 3" textDecoration="none">
                    <mx:Text text="Text in 3" textDecoration="underline" />
                </mx:HBox>
            </mx:ViewStack>
        </mx:Panel>
    </mx:Application>

The LinkBar is using the ViewStack as its dataProvider. There is not a
parent child relationship there so inheritance can not happen. Only the
label and icon properties of the ViewStack's children are passed to the
LinkBar.

HTH

Rob Rusher

 

RIA Consultant

Macromedia Certified Flex Instructor

e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher


-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Tuesday, January 24, 2006 6:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can CSS Inheritance be Controlled?

I would like to insert some Links in a LinkBar that do not inherit the
textDecoration attribute from the parent LinkBar. Setting the
individual Links textDecoration has no effect, they all use the
parent's attribute.

Would anyone have any idea how to do this? Maybe somebody from
Adobe/MM could provide a suggestion?

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



 




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