# Using ActionScript specify which characters you want to embed

**URL:** https://forum.kirupa.com/t/using-actionscript-specify-which-characters-you-want-to-embed/235855
**Category:** Uncategorized
**Created:** [August 15, 2007, 10:19am UTC](https://forum.kirupa.com/t/using-actionscript-specify-which-characters-you-want-to-embed/235855 "2007-08-15T10:19:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![verbruggher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/verbruggher/32/3329_2.png) [@verbruggher](https://forum.kirupa.com/u/verbruggher)
#### Post date: [August 15, 2007, 10:19am UTC](https://forum.kirupa.com/t/using-actionscript-specify-which-characters-you-want-to-embed/235855/1 "2007-08-15T10:19:43Z")

</div>

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](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm)

```auto

//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);

```
