thanks got it!
On Jan 11, 2008 10:35 AM, Alex Harui <[EMAIL PROTECTED]> wrote: > Yes, but we recommend the use of unscaledWidth instead of width. > > > ------------------------------ > > *From:* [email protected] [mailto: > [EMAIL PROTECTED] *On Behalf Of *learner > *Sent:* Thursday, January 10, 2008 8:56 PM > *To:* [email protected] > *Cc:* Flashcoders mailing list > *Subject:* Re: [flexcomponents] SetStyle with UI component > > > > thanks Alex got it, > so in update list should i do something like > > childcomp.x = (this.width-childcomp.x)/2 // for aligning the childcomp in > center > > On Jan 10, 2008 10:17 PM, Alex Harui < [EMAIL PROTECTED]> wrote: > > UIComponent does not have any layout logic. Your subclass is responsible > for laying out its children in the updateDisplayList() call and responding > to any alignment or other styles you want to care about > > > ------------------------------ > > *From:* [email protected] [mailto: > [EMAIL PROTECTED] *On Behalf Of *learner > *Sent:* Thursday, January 10, 2008 5:23 AM > *To:* [email protected]; Flashcoders mailing list > *Subject:* [flexcomponents] SetStyle with UI component > > > > Hi all, > Can I not use > setSytle("verticalAling","middle") > setSytle("horizontal","center") > > with uiComponent > > things like > mycomp extends UIComponent{ > > function mycomp (){ > super(); > setSytle("verticalAling","middle") > setSytle("horizontal","center") // this does not work :( > } > > > } > > Please help > Regards > Ps > > > > >
