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.
// 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