"Tagging" files

Hi!

Im wondering if its possible to “tag” a file with a string and then use that string to call all object containg it.

for example:

enemy1_mc = deadly
enemy2_mc = deadly

function hitCheck() {
if (ball1_mc.hitTest(deadly)) {
kill_mc.play
}

Thanks in advance

A