# \[as3\]Best practices + Textarea Question

**URL:** <https://forum.kirupa.com/t/as3-best-practices-textarea-question/249087>\
**Category:** flash\
**Created:** [January 15, 2008, 6:44am UTC](https://forum.kirupa.com/t/as3-best-practices-textarea-question/249087 "2008-01-15T06:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fried](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fried](https://forum.kirupa.com/u/fried)\
**Post date:** [January 15, 2008, 6:44am UTC](https://forum.kirupa.com/t/as3-best-practices-textarea-question/249087/1 "2008-01-15T06:44:50Z")

</div>

Hi there,

I would just like to know. If I have created a document class, is it best practice not to have code on the main timeline?

Also TextArea.setStyle(“textPadding”,10), pads the text in my text area along the x a nd y axis.  
Is there a way to pad it just along the x axis?

thanks
