the _lsn.setStyle("textAlign", "center”); only works if you have a width
so > var _lsn:Label = new Label(); > _lsn.text = _”hellow” _lns.width=100; > _lsn.setStyle("textAlign", "center"); works as it should, I had assumed the width would have been inherited fro the parent > On 20 Sep 2018, at 23:33, Alex Harui <aha...@adobe.com.INVALID> wrote: > > Can you post a small test case? > > On 9/20/18, 1:52 PM, "Scott Matheson" <sc...@unitsofsound.com> wrote: > > Hi > > How do I make a text label appear in the center of an lable using AS3 > code > > > var _lsn:Label = new Label(); > _lsn.text = _”hellow” > _lsn.setStyle("textAlign", "center"); > > > > the issue must be setStyle > > > Scott > > >