Problem in Creating textfield dynamically and rotating it

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:

tfNewfield.text = “Here’s some text”;
tfNewfield.textColor = 0x00cc00;
tfNewfield.border = true;
tfNewfield.autoSize = true;
tfNewfield2.embedFonts = true

thanks in advance