My problem is I don't know how to gather the label using the event
object however not using the event is fine too. Can you
tabDetails.selectedItem.label as well.
// My Dynamic tab
var newTab = tabDetails.createChildWithStyles(chatPanel2, 'HelloTab' +
hello, { label:'HelloTab' + hello, title:'winTitle', height:200,
width:550, fred:42 });
//My event Listener
newTab.addEventListener("click", mx.utils.Delegate.create(this, onClick));
My problem is I don't know how to gather the label.
function onClick(event) {
debugTxt.text += "onClick: event.target " + event.target + " event "
+ event.target.label + "\r";
}
Is there a way dump the event object or find out what the user clicked
on? Thanks.
--
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/