Hi,
I'm trying to have tabs generate when items are chosen from a List
Component. So far I am able to get the tabs to come up and everything but
what I would like to do is have each tab be bound to the selectedItem such
that the label of the tab will be the same as the label of the
selectedItem from the list.
This is what I have right now:
}
function createSchoolTab(event){
var schoolName=event.target.selectedItem.label;
var
newTab:mx.core.UIObject=mx.core.UIObject(schoolsTabNav.createTab(SchoolView,{event.target.selectedItem.label},'The
Canvas'));
schoolsTabNav.selectedChild=newTab;
}
and this would be the errors that I get back:
line 15 ':" unexpected
line 16 This statement is not permitted in a class definition
line 21 unexpected '}' encountered
Can anyone help me with this.
Thanks
Mani
--
"Live as if you were to die tomorrow. Learn as if you were to live forever."
-- Mahatma Gandhi
--
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/