    package rw
    {
        import flare.display.TextSprite;

        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;

        public class WidthTextSprite extends TextSprite
        {
            public function get textWidth():Number { return _tf.width; }
            public function set textWidth(value:Number):void {
                if (_tf.width != value) {
                    _tf.width = value;
                    dirty();
                }
            }

            public function get textHeight():Number { return _tf.height; }
            public function set textHeight(value:Number):void {
                if (_tf.height != value) {
                    _tf.height = value;
                    dirty();
                }
            }

            public function WidthTextSprite(text:String=null, format:TextFormat=null, mode:int=BITMAP) {
                super(text, format, mode);
                _tf.wordWrap = true;
                _tf.autoSize = TextFieldAutoSize.NONE;
            }
        }
    }