<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" id="st1"></mx:Canvas>
<mx:Canvas width="550" height="400" creationPolicy="auto" label="stack2" id="st2"></mx:Canvas>
</mx:ViewStack>
<mx:Button label="stack1" click="alert(vs.getChildAt(0)['creationPolicy'])"></mx:Button>
<mx:Button label="stack2" click="alert(vs.getChildAt(1)['creationPolicy'])"></mx:Button>
<mx:Button label="getChildIndex stack1" click="alert(vs.getChildIndex(st1).toString())"></mx:Button>
<mx:Button label="getChildIndex stack2" click="alert(vs.getChildIndex(st2).toString())"></mx:Button>
</mx:Application>
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
Sent: lundi 8 août 2005 17:02
To: [email protected]
Subject: RE: [flexcoders] Re: nested viewstacks, creationPolicy of none and the creation dilemma
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jaime Bermudez
Sent: lundi 8 août 2005 16:42
To: [email protected]
Subject: Re: [flexcoders] Re: nested viewstacks, creationPolicy of none and the creation dilemma
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.
> ------------------------------------------------------------------
------------------------------------------------------------------
**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.
------------------------------------------------------------------
--
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.

