yes the width works fine var _sln:Label = new Label(); _sln.text = _uofsModel.tempLessonTestResults.aUofS[i]; _sln.setStyle("textAlign", "center"); _bgs.addElement(_sln);
> On 19 Sep 2018, at 16:06, Olaf Krueger <m...@olafkrueger.net> wrote: > >> How do I make a text label appear in the center of an lable using AS3 code > > Did you try to also set the width of the label? > IIRC the alignment only works in conjunction with a width? > > HTH, > Olaf > > > > -- > Sent from: http://apache-flex-users.2333346.n4.nabble.com/