alekslitvinenk >> а так чем вам не нравится?

Код:
import flash.text.TextFormat;
import flash.text.TextField;
import flash.display.Sprite;
import flash.geom.Rectangle;
var format:TextFormat=new TextFormat();
format.font="любой_шрифт";
format.size=20;
var tf:TextField=new TextField();
tf.defaultTextFormat=format;
tf.autoSize=TextFieldAutoSize.LEFT;
tf.htmlText="Hello world!";
addChild(tf);
var bound:Rectangle = tf.getCharBoundaries(0); // скажем, для 1-ой
var sp:Sprite=new Sprite();
sp.graphics.lineStyle(1,0xdd0000);
sp.graphics.moveTo(bound.x, bound.y);
sp.graphics.lineTo(bound.x+bound.width,bound.y);
sp.graphics.lineTo(bound.x+bound.width,bound.y+bound.height);
sp.graphics.lineTo(bound.x,bound.y+bound.height);
sp.graphics.lineTo(bound.x, bound.y);
addChild(sp);
Цитата:
|
Вобщем, есть текстовое поле его должна окружать рамка с маркерами для ресайзинга...
|
О: А, чем вас не устраивает TextFieldAutoSize?
Цитата:
|
...переводи текст на BitmapData...
|
О: Психи, ей богу

))