When I try this: myTabNav.getChildAt(id).dataProvider = evt.data;
I get a build error: 1119: Access of possibly undefined property dataProvider through a reference with static type flash.display:DisplayObject. --- In [email protected], Sherif Abdou <[EMAIL PROTECTED]> wrote: > > why can;t you use the getChildren() or getChildAt() etc.. and just update it from the dataProvde > > > ----- Original Message ---- > From: danneri21 <[EMAIL PROTECTED]> > To: [email protected] > Sent: Thursday, February 14, 2008 5:20:35 PM > Subject: [flexcoders] Re: Editing TabNavigator children in actionscript > > Alright but how exactly would I access the children? Could you give me > an example? > > --- In [EMAIL PROTECTED] ups.com, "Alex Harui" <aharui@> wrote: > > > > Keep variables referencing the children you add to the TabNav > > > > > > > > ____________ _________ _________ __ > > > > From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On > > Behalf Of danneri21 > > Sent: Wednesday, February 13, 2008 2:32 PM > > To: [EMAIL PROTECTED] ups.com > > Subject: [flexcoders] Editing TabNavigator children in actionscript > > > > > > > > Hi guys, > > > > I have a function which dynamically adds custom components (a beefed > > up datagrid basically) to a tabnavigator at runtime. > > > > Somewhere along the line I need to update the dataProvider of a single > > child in the tabnavigator. > > > > How would I go about doing this? > > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ >

