Also if you want to reuse the same function without having to redifine it in every mc or frame you can make a variable to point to it. Such as:

function sayHi(){
trace("Hi")
}

And in a MC that's inside the one with this function you can do:

var hi=_parent.sayHi;

And then call hi() inside the MC instead of _parent.sayHi().