Converting to f8

Finally decided to update some old files to flash8 to utilize the antialias features. Luckily I got everything to work except for this piece:


var maxWidth;
    var i = 0;
    while (i <= this.Yquantity_lines) {
        var Yvalue = this.MinOrdinateValue + i * this.stepY / this.scaleKy;
        var trim_value = trim(Yvalue, 1);
        if (Yvalue - Math.floor(Yvalue) <= 1.000000E-004 && Yvalue != 0) {
            Yvalue = trim_value;
        }

//Breaks below
     var pathToContText = this.createTextFieldChart(Yvalue, "Futura", this.Yheaders_size, this.Yheaders_color, -1, -i*this.stepY, this.Yheaders_rotate, "right", this.target_mc_Chart_line, this.level++);
        maxWidth = Math.max(pathToContText._width, maxWidth);
        ++i;
		trace (maxWidth);
    }
    if (this.MinOrdinateValue < 0 && this.MaxOrdinateValue != 0) {
		this.createTextFieldChart("0", "Futura", this.Yheaders_size, this.Yheaders_color, this.widthGrid + this.border_size / 2, this.MinOrdinateValue * this.scaleKy, this.Yheaders_rotate, "left", this.yaxis_test, this.level++);
    }
//Y-AXIS Title - Works
    pathToContText = this.createTextFieldChart(this.Yheaders_title, "Futura", this.Yheaders_title_size, this.Yheaders_title_color, -maxWidth, -this.heightGrid / 2, this.Yheaders_title_rotate, "center", this.target_mc_Chart_line, this.level++);
    pathToContText._x = pathToContText._x - pathToContText._width / (this.Yheaders_title_rotate == 0 ? (1.500000E+000) : (1));
    return (pathToContText);
};

In flash6 it creates a new movie/text but in flash8 nada, but the Y-axis title piece works?

Any help would be appreciated.

Thank you