Cliff,

I had just been working on the same thing.  I have a partial solution that
I don't know if it will help.


function createSchoolTab(event){
    var newSchool=event.target.selectedItem.label;

    var
newTab:mx.core.UIObject=mx.core.UIObject(medSchoolsTabNav.createTab(SchoolView,'SchoolNameHere','The
Canvas'));
    var selectedTab=medSchoolsTabNav.selectedChild=newTab;
    selectedTab.label="label property";

    }

Mani
-- 
"Live as if you were to die tomorrow. Learn as if you were to live forever."
  --  Mahatma Gandhi

On Thu, July 21, 2005 3:38 pm, Cliff Meyers said:
>     I have a class that dynamically adds several components to a
>  TabNavigator via AS.  I need to pass some data into these components.
>  If they were static (ie, created with MXML) I'd just add an attribute
>  and so some databinding.  How can I accomplish the same thing with AS?
>   There doesn't seem to be a way to assign an ID to a component when
>  creating it so I'm not sure what the best way to access the component
>  is using AS.  Thanks a lot!
>
>
>  -Cliff
>
>
>   --
>  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
>      Visit your group "flexcoders" on the web.
>      To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>







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