You can always call validateNow() to force validation, but you shouldn't be drawing in commitProperties in most cases. Most drawing should be in updateDisplayList
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, March 26, 2007 3:53 PM To: [email protected] Subject: [flexcoders] Re: Custom Component Width when 100%? I can't seem to get the width/height at measure() or updateDisplayList(). Is there a specific function I have to call? Isn't there a way to get the height/width before measure? I'm drawing during commit properties so I would like to get it then. Thanks for your reply. --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > It depends on when you ask. Components have a multi-stage validation > mechanism. Their properties get set in stage1, measured in stage2, > layed out in stage 3. Until measurement, they are zero width/height > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Nate Pearson > Sent: Monday, March 26, 2007 1:09 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Custom Component Width when 100%? > > > > I created a custom component that works great when the width is > specified. However, when I try to set the width to a percent (of the > parent) it returns 0. How to I reference the parent's width? I tried > getExplicitOrMeasuredWidth but it didn't work. > > Thanks in advance for the help. >

