Plz gi ve me some suggestion

i have made a multimedia which is consisting of 57 button and each button is having a code of 8000 lines
the same code was first tested on a 4 button experiment and then implemented on the bigger size.
the problme is that it is giving a memory error which is as follows

" A script in this movie is causing flash player to run slow .if it continues to run , ur computer may become unresponsive"

can any one suggest me anything to over come this problme