# Problems formating dynamic text

**URL:** <https://forum.kirupa.com/t/problems-formating-dynamic-text/174095>\
**Category:** flash\
**Created:** [January 2, 2006, 8:48pm UTC](https://forum.kirupa.com/t/problems-formating-dynamic-text/174095 "2006-01-02T20:48:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fathed](https://avatars.discourse-cdn.com/v4/letter/f/b5ac83/32.png) [@fathed](https://forum.kirupa.com/u/fathed)\
**Post date:** [January 2, 2006, 8:48pm UTC](https://forum.kirupa.com/t/problems-formating-dynamic-text/174095/1 "2006-01-02T20:48:10Z")

</div>

I am trying to format some text and I just can’t figure it out. I am working with Flash 8.

The text is from an XML file going into a dynamically created text feild. I have read and followed many many tutorials but I still can’t seem to get this right.

I have included the actionScript I was working with (well, I am still trying).

If anyone would look at this and tell me what I am doing wrong or point me in the right direction I would be most appreciative.  
Thank you in advance!

```php

_root.bigBox.textBox.setMask(_root.bigBox.textMask);
//
_root.bigBox.textBox.createTextField("mytext", 1, 0, 0, 375, 500);
_root.bigBox.textBox.mytext.multiline = true;
_root.bigBox.textBox.mytext.wordWrap = true;
_root.bigBox.textBox.mytext.border = false;
_root.bigBox.textBox.mytext.type = "dynamic";
_root.bigBox.textBox.mytext.multiline = true;
_root.bigBox.textBox.mytext.wordWrap = true;
_root.bigBox.textBox.mytext.autoSize = "left";
///
myformat = new TextFormat();
myformat.embedFonts = true;
myformat.font = "Garamond Premr Pro Capt";
myformat.color = 0x454418;
myformat.size = 16;
///
fathedContent = new XML();
fathedContent.ignoreWhite = true;
fathedContent.load("text/siteText.xml");
fathedContent.onLoad = function(success) {
    if (success) {
        /// buttons down
        _root.garden.onRelease = function() {
            my_mc.loadClip("images/garden.jpg", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Garden";
            _root.bigBox.textBox.mytext.text = unescape(fathedContent.firstChild.childNodes[1].childNodes);
        };
        _root.pet.onRelease = function() {
            my_mc.loadClip("images/pets.jpg", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Pet Care";
            _root.bigBox.textBox.mytext.text = unescape(fathedContent.firstChild.childNodes[2].childNodes);
        };
        _root.wise.onRelease = function() {
            my_mc.loadClip("images/wise.jpg", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Wisdom";
            _root.bigBox.textBox.mytext.text = unescape(fathedContent.firstChild.childNodes[3].childNodes);
        };
        _root.foto.onRelease = function() {
            my_mc.loadClip("images/foto.jpg", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Photographs";
            _root.bigBox.textBox.mytext.text = unescape(fathedContent.firstChild.childNodes[4].childNodes);
        };
        _root.home.onRelease = function() {
            my_mc.loadClip("introMC.swf", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Home";
        };
        _root.home2.onRelease = function() {
            my_mc.loadClip("introMC.swf", "_root.lilBx.imageHolder", 5);
            _root.lilBx.loadName.text = "Loading Home";
        };
    } else {
        trace("no");
        // end if 
    }
};
_root.bigBox.textBox.mytext.setTextFormat(myformat);

```

And here is the fla.  
[http://www.fat-hed.com/format prob.fla](http://www.fat-hed.com/format%20prob.fla)
