Setting creationPolicy="all" is ALMOST NEVER the right thing to do in Flex. It disables the Deferred Instantiation feature, which enables Flex apps to minimize their startup time by not instantiating components until the user can see them.

Declare a Boolean var on the second pane to store the enabled flag for the component; you can set this flag at any time, including before the component is instantiated. Bind the enabled property of the component to this flag.

 

- Gordon

 


From: [email protected] [mailto:[email protected]] On Behalf Of Steve Cox
Sent: Tuesday, September 26, 2006 8:22 AM
To: [email protected]
Subject: RE: [flexcoders] When are Accordian Components instantiated?

 

Add creationPolicy="all" to the accordion.

 

This will make it create all the children at initial load. You can also set it to queued, check out creationPolicy in the docs

 

HTH

Steve

 

-----Original Message-----
From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Wally Randall
Sent: 26 September 2006 16:09
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] When are Accordian Components instantiated?

 

Problem: I have a form with an accordian component. As the workflow
progresses I need to enable buttons and components in accordian panels
which have not yet been openned. That is not possible until the panel
containing the component is openned.

Can someone explain how the accordian component instantiates panel
components?

Do you have a suggestion for how to enable a component that has not
been instantiated?

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to