forked from: flash on 2010-9-16

by mat1 forked from flash on 2010-9-16 (diff: 46)
♥0 | Line 18 | Modified 2010-09-16 21:25:24 | MIT License
play

ActionScript3 source code

/**
 * Copyright mat1 ( http://wonderfl.net/user/mat1 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/l4r6
 */

package {
    import flash.display.Sprite;
 
    import flashx.textLayout.container.TextContainerManager;
 
    [SWF(width="550", height="300")]
 
    public class TextContainerManager_setText_test extends Sprite {
        public function TextContainerManager_setText_test() {
            var spr:Sprite = new Sprite();
            addChild(spr);
            spr.x = 40;
            spr.y = 50;
 
            var tcm:TextContainerManager = new TextContainerManager(spr);
            tcm.compositionWidth = 300;
            tcm.compositionHeight = 200;
            tcm.setText("(1)The quick brown fox jumps over the lazy dev. (2)The quick brown fox jumps over the lazy dev. (3)The quick brown fox jumps over the lazy dev. (4)The quick brown fox jumps over the lazy dev. (5)The quick brown fox jumps over the lazy dev.");
            tcm.updateContainer();
        }
    }
}