Targeting

hi. i’m trying to lay out 7 text fields (which are nested inside movie clips). i’m pretty sure i’ve got it just about right, but…the text fields aren’t appearing which makes me think i’m not targeting them right in the “Set Text Field Properties” area.

i was hoping someone might be able to fix my erratic thinking.

below is my code:


for(var i:Number=0; i < numCols; i++){
    // Create the Movie Clips
    var dayHeadings:MovieClip = _root.createEmptyMovieClip("dayHeadings"+i,101);
			
    // Create a Text Field Inside Each Clip
        dayHeadings.createTextField("dayHeaders"+i,100,0,0,indColWidth,colHeight);
			
    // Set Text Field Properties
    _root.dayHeadings["dayHeaders"+i].selectable = false;
    _root.dayHeadings["dayHeaders"+i].autoSize = "left";
    _root.dayHeadings["dayHeaders"+i].border = true;
    _root.dayHeadings["dayHeaders"+i].text = headings*;
			
    // Define the Formatting
    var format:TextFormat = new TextFormat();
    dayHeadings._root["dayHeaders"+i].setTextFormat(format);
			
    // Position this Clip
    dayHeadings._x = indColWidth * i;
    dayHeadings._y = startSecRowYPos;
    dayHeadings._width = indColWidth;
    dayHeadings._height = colHeight;
}

thanks. fumeng.