Skip to main content
July 21, 2008
Question

Aligning object to stage with actionscript

  • July 21, 2008
  • 1 reply
  • 259 views
I have a dynamic text box pulling info from an xml file. After the text loads the box resizes with autoSize.
Any ideas on how i can get the box to align to the center of the stage after that with actionscript??
I've looked around and can't seem to find a solid yes or no anywhere.
Or if that's impossible, is there any way to vertically align the text, which would negate the need for the resize and align.

Thanks
This topic has been closed for replies.

1 reply

July 21, 2008
nevermind....
worked a little more and got it to work with

mc_text.desc_txt._y=(Stage.height/2)-mc_text.desc_txt._height/2;