나 (TM) (플렉스 빌더 AS3 프로젝트)에 대한 작품 :
[Embed(systemFont="Segoe UI", fontWeight="bold", fontName="emb",
mimeType="application/x-font")]
private var EmbeddedFont:Class;
public function ScratchAs3()
{
stage.scaleMode = 'noScale';
stage.align = 'tl';
var m:Matrix = new Matrix(.8, .1, -.1, 1.1, 26, 78);
var t:TextField = new TextField();
t.autoSize = 'left';
t.wordWrap = false;
t.embedFonts = true;
t.defaultTextFormat = new TextFormat("emb", 100, 0, true);
t.transform.matrix = m;
t.text = "TEST STRING.";
addChild(t);
var r:Rectangle = t.getCharBoundaries(8);
var tl:Point = m.transformPoint(r.topLeft);
var tr:Point = m.transformPoint(new Point(r.right, r.top));
var bl:Point = m.transformPoint(new Point(r.left, r.bottom));
var br:Point = m.transformPoint(r.bottomRight);
graphics.beginFill(0xFF, .6);
graphics.moveTo(tl.x, tl.y);
graphics.lineTo(tr.x, tr.y);
graphics.lineTo(br.x, br.y);
graphics.lineTo(bl.x, bl.y);
graphics.lineTo(tl.x, tl.y);
}
그대로 귀하의 질문에 대답하려면, 그렇지는 부모의는 텍스트 필드의 좌표계에서 좌표를 반환하고, 그것은으로 DisplayObject에 의해 영향을 받는다 .taleform.matrix는 .x, .y, .scaleX, .scaleY, .width, .height 및 .rotation 속성을 지원합니다.
그 소리가 답이 될 수 있습니다. 나는이 질문에 의해 누군가가 올 경우에 대비하여 대답을 줄 것이다. –