Have you tried selectedChild.label or
selectedChild.text?
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dan Plesse
Sent: Tuesday, January 31, 2006
5:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do you
get the tab label using change event and tabbar.selectedChild
How do you get the tab label using change event and
tabbar.selectedChild?
// the eventListenr
tabDetails.addEventListener("change",
mx.utils.Delegate.create(this,
onChange));
// the function
function onChange(event){
debugTxt.text += "line 26 tabbar.selectedChild:
== " +
tabDetails.selectedChild + " \r";
}
// the output obj0 seems to be tab 1
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails.HelloTab0
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails._obj1
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails.HelloTab0
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails._obj1
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails._obj0
line 26 tabbar.selectedChild: ==
_level0.mainPanel._obj0.VBBOX.tabDetails._obj1
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] How do you get the tab label using change eve... Sauro, Nick
-