Dynamic text properties

The code below is for a dynamic breadcrumb that is run off a xml sheet. The problem is that i cant seem to change any of the attributes of the textfield created. I tried the NewTextFormat class but couldnt get it to work.

Any ideas?

/**

  • This function will draw breadcrumbs
    **/
    function drawBreadCrumb(node, level) {
    var txt = getBreadCrumbText(node, level);
    if (txt != undefined) {
    var clip = “bread”;
    var depth = 1000;
    bread = _root.createTextField(“breadcrumb”, depth, 140, 14, _root._width, 20);
    with (_root.breadcrumb) {
    html = true;
    htmlText = txt;
    selectable = false;
    }
    }
    }

/**

  • This function will construct the breadcrumb text.
    **/
    function getBreadCrumbText(node, level) {
    var subText = “”;
    if (node.parent != undefined) {
    if (level>0) {
    subText = getBreadCrumbText(node.parent, level-1);
    }
    }
    var sLevel = “”;
    if (subText != “”) {
    sLevel = " >";
    }

    return subText + sLevel +" <a href=‘asFunction:loadPage,"+node.navString+"’ >"+node.navTitle+"</a>";///"+node.navUrl+"’ ><B>"+node.navTitle+"</B></a>";
    }