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