Loop overwriting itself

what do you do when a loop “overwrites” itself and only displays the last value?

for (  var j:Number = 0; j < xml_array.length; j++ ) {
        
            //Set state movie clips' parentMC and mainBroadcaster and onRelease functions
            this ["state" + j + "_mc"].mainBroadcaster = this.mainBroadcaster;
            this ["state" + j + "_mc"]._alpha = 0;
            this ["state" + j + "_mc"].stateID = idArray[j];
            this ["state" + j + "_mc"].onRollOver = function() {
                //when clicked, tell button to broadcast its id
                this.mainBroadcaster.broadcastMessage( "stateRolled", stateID, this );
                trace("state " + j + " was rolled over. For the Greater Good.");
            }
        }

here is the code snippet for the loop; I’ve used this before in a previous project and it didn’t have this problem.

Thanks~ :kir: