I am doing a small test with arrays. I have 5 purple movie clips, their instance names are: p1,p2,p3,p4,p5.
I have declared an empty array called purple. On press of each mc I want the particular mc to be added to the array, and on press again I want the particular mc to be deleted from the array.
However, this does not work, it seems to be deleting the lastly added mc name from the array no matter of which mc I unpress.
I am new with arrays, I am using pop and push. I will upload my file. Could someone have a look at it please? Is there another array command to add and delete the particular mc which is presses and unpressed, and not the one that was last added to the array?