Using ActionScript specify which characters you want to embed

If the text field is populated by using ActionScript, you must specify which characters you want to embed for the text field.

But how do I do that with actionscript? Is there some property not documented? Or method to do this? I know the embed panel yes, but i want to do it with actionscript.

This doesnt help also as the comments show…http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm


//METHOD 1 WORKS
        var my_txt:TextField = _root.createTextField('my_txt', i, i*10, i*10, 300, 30);
        
        //METHOD 2 WORKS ALSO
        //var mc = _root.attachMovie('mc','mc'+i,i*10,{_x:i*10, _y:i*20})
        //var my_txt = mc.my_txt
        
        my_txt.wordWrap = true;
        my_txt.antiAliasType = "advanced";
        my_txt.embedFonts = true;
        my_txt.multiline = true;
        my_txt.autoSize = true;
        my_txt.border = true;
        my_txt.background = true
        my_txt.backgroundColor = 0xffffff;
        my_txt.html = true;my_txt.htmlText = "<font color='#0000FF'>this is blue text or whatever</font> and then i guess this should be the <b>BOLD text damnit</b>";
        my_txt.setTextFormat(my_fmt);