Actionscript Code:
theInstanceName.onRelease=function(){
trace("Hello World");
}