From http://www.snipplr.com/view/9553/as3-movieclipasabutton-easy-function/