It is your REmove Child that is failing because it is
referring to the ID panel1, which is now and ARRAY of
DisplayObjects instead of just one. If you wanted to remove the
first panel from the repeater, you could use panel1.
You may have to remove those items programatically on state
change because you will need to loop through the array to get rid
of those panels...