It suppose to be setSytle("horizontalAlign","center"), you missed Align there ;)
--- In flexcomponents@yahoogroups.com, learner <[EMAIL PROTECTED]> wrote: > > 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 >