blockListener=new Object(); blockListener.onRelease= function(){ }; button.onRelease= blockListener.onRelease;