My stage has 30 MC's scattered around. How can I detect an onRelease for all 30 of these MC's using a for loop. Here is an idea of what I want:
_root.onEnterFrame = function()
{
for(i = 1; i <= 30; i++)
{
_root["mc" + i].onRelease = function()
{
trace("You clicked MC: " + i)
}
}
}
Obviously, this code does not work, I just wrote it to illustrate my problem. What should I do? (These 30 MC's have to be movie clips, not buttons)