|
Hi Mark. createChildren() is the right place for a compnent
to create 'static' children. But dynamic children...i.e. children that are
created or destroyed based on some runtime information, like amount of data,
size on screen, etc...need to be created elsewhere.
In general, I would reccomend custom components
create/destroy dynamic children in their commitProperties() function. This is
because adding/removing children usually means the component needs to be
re-measured. Doing it in commitProperties means you do it before any pending
measurement happens, and don't end up with unnecessary extra measurement
passes.
Charts, however, don't have a natural measured
size. So the various series types
create and destroy their children as necessary in their updateDisplayList()
function. At that point, you can be sure your data is all up to
date.
Ely.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Thursday, September 14, 2006 8:46 AM To: [email protected] Subject: [flexcoders] How can I add a child element to an AreaSeries based on the render data? I'm creating an AreaChart that has labels inside each area. Very few -- 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
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 __,_._,___ |
- [flexcoders] How can I add a child element to an AreaSeries... Mark
- RE: [flexcoders] How can I add a child element to an A... Ely Greenfield
- [flexcoders] Re: How can I add a child element to ... Mark
- RE: [flexcoders] Re: How can I add a child ele... Ely Greenfield
- [flexcoders] Re: How can I add a child ele... Mark
- RE: [flexcoders] Re: How can I add a ... Ely Greenfield
- [flexcoders] Re: How can I add a ... Mark
- RE: [flexcoders] Re: How can ... Ely Greenfield
- RE: [flexcoders] Re: How can I add a child... Pekka Kola

