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




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

Reply via email to