Hey Guys, I am kinda new to action script so bear with me if this is a bit of a noob question.

I have a series of text fields within buttons (movie clips). To change the text of these fields you would call C1_btn.C1_Name.text = "some string" (changing 1 to 2, 3, 4, etc. for all the fields totaling 10)

var myString:String;
var i:int;
for(i=1; i<10; i++) {
myString = "C" + i + "_btn.C" + i + "_Name.text"; //This will look like this "C1_btn.C1_Name.text".
myString = "Chapter" + i; // Change the text of the field in the button...

// C1_btn.C1_Name.text = "chapter 1"; // tested and works.
}

How would i do this so that the second call to myString would be taken literally as C1_btn.C1_Name.text because that is what I actually want to change.

Hope this makes sense and someone has a clean solution. Thanks in advance.

P