mxml is eventually converted to actionscript. So, you can instantiate
this component using 'new' just like you do with an AS class.

- venkat
http://www.venkatj.com

--- In [email protected], "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> But how do I load mxml component at the run time?
> 
> --- In [email protected], Sherif Abdou <sherif626@> wrote:
> >
> > addChild() and just figure out the tabIndex that the user is on and 
> load the appropriate form. 
> > get the Index or label of the container and just add them
> > <mx:TabNavigator id="myNav" change="tabChange(event)">
> > <mx:Canvas label="Flex"/>
> > <mx:Canvas label="Coders"/>
> > </mx:TabNavigator>
> > 
> > 
> > 
> > ----- Original Message ----
> > From: markgoldin_2000 <markgoldin_2000@>
> > To: [email protected]
> > Sent: Thursday, January 24, 2008 12:22:56 PM
> > Subject: [flexcoders] Adding children at run-time
> > 
> > I have a tab navigator as a main application container. I have 
> designed 
> > mxml components (form based) for each tab. I want to load these 
> forms 
> > when a user clicks on a tab. How can I do that?
> > 
> > Thanks
> > 
> > 
> > 
> > 
> > 
> >       
> ______________________________________________________________________
> ______________
> > Looking for last minute shopping deals?  
> > Find them fast with Yahoo! Search.  
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >
>


Reply via email to