How can I change the properties of components within an accordion?

Hey there,

I’m trying to programmatically change the text in a textArea which is inside an accordion. I’m trying to have this occur when a user selects a new index from the accordion (when a different header is selected). The reason I’m doing this is so I can load dynamic text into the accordion. But I can’t find the correct syntax, if it exists, to identify the textArea in order to change its properties.

This code (thanks Canadian!) works to register a change in the accordion:

acc.addEventListener(“change”, this);
change = function (evtObj:Object):Void {
if (acc.selectedIndex == 1) {

// this is where I can’t find the syntax to identify the textArea, should be something like:

acc.mc_txt.txtArea.text = “new text”;

// but this doesn’t work

};
};

I’ve tried several variations to try to identify the textArea, I’ve used the linkage name, the actual movie clip name, but none have worked. I think the trouble is that there is no real instance of the movie clip which contains the textArea - it is merely linked to the accordion via the childSymbols in the properties of the accordion.

Any ideas? Thanks!