Re: [flexcoders] Flex 1.5 ViewStack child creation

2006-04-30 Thread Manish Jethani



On 4/25/06, nahruka <[EMAIL PROTECTED]> wrote:

> What I'm realising is that children are ALL created, in a sequential
> fashion, but CREATED in fact. Why is this happening? Should I set a
> creationPolicy property to "none" and then instantiate the views
> manually? If so, which is the best way to do it? createComponent()?
> createChild()? createClassObject()?

If you set creationPolicy to "none", you can create each child on your
own using the 'createComponentFromDescriptor' method.

Example from the docs:


http://www.adobe.com/2006/mxml">
    
    public function doSomething():void {
    myVBox.createComponentFromDescriptor
    (myVBox.childDescriptors[0],false);
    myVBox.createComponentFromDescriptor
    (myVBox.childDescriptors[1],false);
    myVBox.createComponentFromDescriptor
    (myVBox.childDescriptors[2],false);
    }
    
    
    
    
    
    
    


Manish






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.



  











Re: [flexcoders] Flex 1.5 ViewStack child creation

2006-04-30 Thread Manish Jethani



On 4/30/06, Manish Jethani <[EMAIL PROTECTED]> wrote:

> If you set creationPolicy to "none", you can create each child on your
> own using the 'createComponentFromDescriptor' method.

Didn't realise you were talking about Flex 1.5. It's createComponent()
in that case.

Manish






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  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.



  











Re: [flexcoders] Flex 1.5 ViewStack child creation

2006-04-25 Thread Stanislav Zayarsky



>From Help:
Navigator containers such as Accordion, TabNavigator, and ViewStack
implement the auto policy by creating all their children immediately,
but wait to create the deeper descendants of a child until it becomes
the selected child of the navigator container.

So if you want to create all your childrens at one time, just use
creationPolicy="all"

On 4/25/06, nahruka <[EMAIL PROTECTED]> wrote:
> I'm using the following ViewStack  within my application:
>
> 
> 
> 
> 
> 
>
> I've been reading about the ViewStack component and found that children
> (except the first one) are only created when the user explicitly makes
> an action that causes the selected child to change as:
>
> function myButton.click() { myViewStack.selectedChild = thirdView; }
>
> What I'm realising is that children are ALL created, in a sequential
> fashion, but CREATED in fact. Why is this happening? Should I set a
> creationPolicy property to "none" and then instantiate the views
> manually? If so, which is the best way to do it? createComponent()?
> createChild()? createClassObject()?
>
> Please, help me... :-S
>
> Thanks!
>
>
>
>
>
>
> --
> 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
>
>
>
>
>
>
>






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



  












[flexcoders] Flex 1.5 ViewStack child creation

2006-04-25 Thread nahruka



I'm using the following ViewStack  within my application:


 
 
 


I've been reading about the ViewStack component and found that children
(except the first one) are only created when the user explicitly makes
an action that causes the selected child to change as:

function myButton.click() { myViewStack.selectedChild = thirdView; }

What I'm realising is that children are ALL created, in a sequential
fashion, but CREATED in fact. Why is this happening? Should I set a
creationPolicy property to "none" and then instantiate the views
manually? If so, which is the best way to do it? createComponent()?
createChild()? createClassObject()?

Please, help me... :-S

Thanks!










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