Thanks Philippe, that works for auto viewstacks but I'm dealing w/ a viewstack w/ creationPolicy = "none" so doing a getChildAt(index) will return a null. I need to check the childDescriptors array... any other ideas?
On 8/8/05, Philippe Maegerman <[EMAIL PROTECTED]> wrote: > I made a little sample > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application > xmlns:mx="http://www.macromedia.com/2003/mxml"> > <mx:TabBar dataProvider="vs"></mx:TabBar> > <mx:ViewStack id="vs"> > <mx:Canvas width="550" height="400" creationPolicy="none" > label="stack1"></mx:Canvas> > <mx:Canvas width="550" height="400" creationPolicy="auto" > label="stack2"></mx:Canvas> > </mx:ViewStack> > <mx:Button label="stack1 creationPolicy" > click="alert(vs.getChildAt(0)['creationPolicy'])"></mx:Button> > <mx:Button label="stack2 creationPolicy" > click="alert(vs.getChildAt(1)['creationPolicy'])"></mx:Button> > </mx:Application> > > Philippe Maegerman > > ________________________________ > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Jaime Bermudez > Sent: lundi 8 août 2005 15:55 > To: [email protected] > Subject: [flexcoders] Re: nested viewstacks, creationPolicy of none and the > creation dilemma > > > So, nobody on the board knows how to tell through the childDescriptors > array if a child of a viewstack has creationPolicy of none? > > On 8/5/05, Jaime Bermudez <[EMAIL PROTECTED]> wrote: > > Hey guys, > > > > I'm not sure if this question was fully explored, but I have a case > > where I have some nested viewstacks that may have creationPolicies of > > none. They are actally subclasses of the viewstack class, w/ an > > activate method that will "instantiate" a child if it has not yet been > > defined (i.e. customVS.activate("childCmpId")). The instantiation is > > done through the createComponent method, passing in the descriptor > > index. The question I have is how can I tell what the creationPolicy > > of the child is so that I can pass a false to the createComponent > > method if it's "none"? > > > > Thanks, > > > > Jaime > > > > > -- > 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. > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > ________________________________ > > > ------------------------------------------------------------------ > **STATEMENT OF CONFIDENTIALITY** > > This e-mail and any attached files are confidential and intended solely for > the use of the individual to whom it is addressed. If you have received this > email in error please send it back to the person that sent it to you. Any > views or opinions presented are solely those of author and do not > necessarily represent those the Emakina Company. Unauthorized publication, > use, dissemination, forwarding, printing or copying of this email and its > associated attachments is strictly prohibited. > > We also inform you that we have checked that this message does not contain > any virus but we decline any responsability in case of any damage caused by > an a non detected virus. > ------------------------------------------------------------------ ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hb8k54h/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123519355/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> -- 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/

