你如何旋转在ActionScript 3.0文本字段?当我改变文本字段的旋转属性,它不显示。
例如:
VAR txtFld:文本字段=新的TextField();
txtFld.x = 100;
txtFld.y = 100;
txtFld.width = 300;
txtFld.height = 300;
txtFld.text =测试字符串;
txtFld.rotation = 90;
的addChild(txtFld);
解决方案
若干配套克里斯托夫Herreman的详细信息:的动作 - 旋转文本
How do you rotate a text field in actionscript 3.0? As soon as I change the rotation property of the text field, it does not display.
for example:
var txtFld:TextField = new TextField();
txtFld.x = 100;
txtFld.y = 100;
txtFld.width = 300;
txtFld.height = 300;
txtFld.text = "Test String";
txtFld.rotation = 90;
addChild(txtFld);
解决方案
Some more info supporting Christophe Herreman : ActionScript - Rotating Text