I’ve created a number of MC’s dynamically. Inside each MC, there are 4 comboBoxes. I’m trying to access the selectedItem.label from code.
When I use
trace(e.target.selectedItem.label);
on a mouseEvent, it gives me the right value
However, when trying to access from code on the timeline, I can’t get the value e.g.
trace("=======================" + my_FC_row.getChildAt(4)); // Value is ComboBox
If I try
trace("=======================" + my_FC_row.getChildAt(4).selectedItem.label);
I get nothing.
What am I doing wrong here?
The first child has index 0, try
my_FC_row.getChildAt(3)