TLFTextFieldのバグ?

by umhr
テキストの一部だけのフォーマットを変えたいんだけど、できない。

*コメントアウトしている部分は、TLFTextFieldを使っているので、wonderflでは動きません。
♥0 | Line 19 | Modified 2012-03-10 04:29:40 | MIT License
play

ActionScript3 source code

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

package
{
    //import fl.text.TLFTextField;
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    
    /**
     * ...
     * @author umhr
     */
    public class FontMix extends Sprite 
    {
        
        public function FontMix() 
        {
            /*
            var tlfTextField:TLFTextField = new TLFTextField();
            tlfTextField.defaultTextFormat = new TextFormat("_sans", 24, 0x000FF0);
            tlfTextField.width = 400;
            tlfTextField.text = "TLFTextField";
            tlfTextField.setTextFormat(new TextFormat("_sans", 24, 0x00FF00), 3, 7);
            tlfTextField.y = 0;
            addChild(tlfTextField);
            */
            
            var textField:TextField = new TextField();
            textField.defaultTextFormat = new TextFormat("_sans", 24, 0x000FF0);
            textField.width = 400;
            textField.text = "TextField";
            textField.setTextFormat(new TextFormat("_sans", 24, 0x00FF00), 3, 7);
            textField.y = 100;
            addChild(textField);
        }
    }
}

Forked