# Problem in Creating textfield dynamically and rotating it

**URL:** https://forum.kirupa.com/t/problem-in-creating-textfield-dynamically-and-rotating-it/38594
**Category:** Uncategorized
**Created:** [December 26, 2003, 8:03am UTC](https://forum.kirupa.com/t/problem-in-creating-textfield-dynamically-and-rotating-it/38594 "2003-12-26T08:03:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chikki\_ram](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@chikki\_ram](https://forum.kirupa.com/u/chikki_ram)
#### Post date: [December 26, 2003, 8:03am UTC](https://forum.kirupa.com/t/problem-in-creating-textfield-dynamically-and-rotating-it/38594/1 "2003-12-26T08:03:49Z")

</div>

Hi,  
I am creating a textfield dynamically and painting values in to it,i want to further customize position of the textfield by rotating it from horizontal to vertical.  
Can anybody please help me out on this.  
this is a brief code:

## ActionScript:--------------------------------------------------------------------------------this.createTextField(“tfNewfield”,1,10,10,150,30); tfNewfield.text = “Here’s some text”; tfNewfield.textColor = 0x00cc00; tfNewfield.border = true; tfNewfield.autoSize = true; tfNewfield2.embedFonts = true

thanks in advance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 28, 2003, 8:11pm UTC](https://forum.kirupa.com/t/problem-in-creating-textfield-dynamically-and-rotating-it/38594/2 "2003-12-28T20:11:18Z")

</div>

Place the textfield inside a movieclip and rotate the movieclip.[AS]this.createEmptyMovieClip(“t”, 1);  
t.createTextField(“tfNewfield”, 1, 0, 0, 0, 0);  
with (t.tfNewfield) {  
autoSize = true;  
border = true;  
embedFonts = true;  
textColor = 0x00cc00;  
text = “Here’s some text”;  
tf = new TextFormat();  
tf.font = “Verdana”;  
setTextFormat(tf);  
}  
t.\_rotation = 270;[/AS]
