

s.campaign = "Campaign Name";
s.pageName = "About Us";
s.eVar17 = "value";
s.track();s.campaign = "Campaign Name";
s.pageName = "About Us";
s.eVar17 = "value";
s.track();
s.campaign = null;
s.pageName = null;
s.eVar17 = null;for (var i:uint = 0; i < mcMain.numChildren; i++){
txtOutput.htmlText += 'name:' + mcMain.getChildAt(i).name;
txtOutput.htmlText += '\t type:' + typeof (mcMain.getChildAt(i));
txtOutput.htmlText += '\t' + mcMain.getChildAt(i);
txtOutput.htmlText += "";
}
The above code uses a for loop, to loop through the total number of children in mcMain. mcMain.getChildAt(i) will get the reference to the child instance. By tacking .name to the end of mcMain.getChildAt(i) you can get the name of the child object.
download source