For Loops help?

Hey all,

I have a little problem…i have about 25 slides (or MC’s) and they contain dynamic text fields.
I have an admin area setup where i can change the content in that dynamic text field from within my admin area.

Now my problem starts rather than writting 50 functions or whatever per MC as there might be more at certain stages or less.

I’m trying to figure out the best way to write a loop which displays whatever text from the mc that is currently open in my admin area so i can edit it…(i have this working for one only)
that’s why i was thinking a for loop would do the trick. is this possible and if so does anybody know of any tutorials closely relating to this or best options to do this??

Cheers in advance :smiley:

PS: This is my attempt going confusing :S HELP!

[AS]this.slides_modify = _root.slide02MC.slide02Text;
/function changeText(){
_root.slide02MC.slide02Text = this.slides_modify;
}
/

setHandlers();

function setHandlers():Void {
//loop through all the nested MovieClips objects in slides movieclip.
for (var sInstance:String in slides){
//if the Movieclip is slide01, skip it.
if(sInstance == “slide01”) {
continue;
}

    //When the user clicks on the button, toggle the content to the admin panel.
    slides[sInstance].onRelease = function():Void {
        setMcs();
    };
}

}

function setMcs():Void {
//loop through all the nested MovieClips objects in slides movieclip.
for (var mInstance:String in mContent){
//if the Movieclip is slide01, skip it.
_root.mContent[mInstance].onRelease = function():Void {
_root.mContent[mInstance]._visible = true;
_root.mContent[mInstance].text = this.slides_modify;
}
}
}

    [/AS]