Is this 1.5 or 2.0?  I don't remember, it's possible the "selected"
property will keep the link highlighted?  So you could then do
linkBar.getChildAt(event.index).selected = true.

There isn't a direct way to get that id that you're looking for.  But
you can take the event's index to find the right item in the
dataProvider and then pull a property off that way.

Matt 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of rgwilson26
Sent: Friday, February 24, 2006 7:59 AM
To: [email protected]
Subject: [flexcoders] LinkBar for viewStack

I would like to know if there is a way to allow a link that has been 
clicked to stay highlighted with relation to what viewstack item is 
displayed? I have all forms under one viewstack (on the right), with 
multiple navigation menus/linkbars (in another viewstack on the 
left...vertical alignment). At the moment I am using vs.selectedChild 
for each link to specify which viewStack component to navigate to, but 
links will not stay highlighted with regards to their given component. 
Is there a propery that will allow this? Also, is there a way to pass 
an ID instead of the string for a reference in a click event as shown 
below?

Thanks,

"event.id" does not work...I want to pass the id of the string and not 
the label.
********************************************************************

<mx:LinkBar click="{'vs.selectedChild=' + String(event.id)}" 
direction="vertical">
<mx:dataProvider>
        <mx:Array>
                <mx:String id="link1">Link 1</mx:String>
                <mx:String id="link2">Link 2</mx:String>
        </mx:Array>
</mx:dataProvider>
</mx:LinkBar>





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