# Formating Dynamic text via Actionscript

**URL:** https://forum.kirupa.com/t/formating-dynamic-text-via-actionscript/91240
**Category:** Uncategorized
**Created:** [September 30, 2003, 10:13pm UTC](https://forum.kirupa.com/t/formating-dynamic-text-via-actionscript/91240 "2003-09-30T22:13:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![COVERFIRE](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@COVERFIRE](https://forum.kirupa.com/u/COVERFIRE)
#### Post date: [September 30, 2003, 10:13pm UTC](https://forum.kirupa.com/t/formating-dynamic-text-via-actionscript/91240/1 "2003-09-30T22:13:30Z")

</div>

I’ve got a dynamic text box that I am controlling from actionscript, but I can’t figure out how to make a certain sentence be centered. I tried using the center tags for html but it won’t work.

```auto
TextFieldInstanceName.htmlText = "<a href='asfunction:gotoAndPlay,frameNumberOrLabelHere'>THIS IS WHAT I WANT CENTERED, BUT <CENTER> DOESN'T WORK</a>";

```
