something does not work after package

i have a button on widget ,and add on click event . set widget visible with Hidden.
when i play with New editor window , it work .but when i packaged for windows it dose not work,could anyone help me.