# TextField with the textdirection vertical

**URL:** <https://forum.kirupa.com/t/textfield-with-the-textdirection-vertical/283413>\
**Category:** flash\
**Created:** [March 5, 2009, 8:08pm UTC](https://forum.kirupa.com/t/textfield-with-the-textdirection-vertical/283413 "2009-03-05T20:08:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkamp](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@nkamp](https://forum.kirupa.com/u/nkamp)\
**Post date:** [March 5, 2009, 8:08pm UTC](https://forum.kirupa.com/t/textfield-with-the-textdirection-vertical/283413/1 "2009-03-05T20:08:37Z")

</div>

Hello,

I have created a textfield in actionscript but I want the textdirection vertical.  
for instance I have this text: Hello World then I want rotate this 90 degrees CCW. What I don’t want is like this:  
H  
E  
L  
L  
O  
etc.  
Here is my code for the textfield.

```auto

// be sure this is pointing to a ttf font in your hardrive
[Embed(source="C:\WINDOWS\Fonts\verdana.ttf", fontFamily="foo")] 
var bar:String;
                  
var format1:TextFormat = new TextFormat();
format1.font = "foo";
format1.color = 0xFFFFFF;
format1.size = 130;
    
var label:TextField = new TextField();
//label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.defaultTextFormat = format1;
label.text = "Hello World!";
label.rotation = -90; //THIS DOESN'T ROTATE MY COMPLETE TEXTFIELD. 
addChild(label);

```

Or can this only be realized with a mc? I should like to create it with actionscript 3.0

Nico
