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

**URL:** <https://forum.kirupa.com/t/how-can-i-change-the-properties-of-components-within-an-accordion/180939>\
**Category:** Uncategorized\
**Created:** [March 4, 2006, 8:38pm UTC](https://forum.kirupa.com/t/how-can-i-change-the-properties-of-components-within-an-accordion/180939 "2006-03-04T20:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Post date:** [March 4, 2006, 8:38pm UTC](https://forum.kirupa.com/t/how-can-i-change-the-properties-of-components-within-an-accordion/180939/1 "2006-03-04T20:38:00Z")

</div>

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!
