I can almost always find a way to get a function to work, but it is rarely in the most optimized fashion...

I have a portfolio page with 8 boxes and a loadMovie function calling external JPGs to load into each box as well as a setVariable function calling a caption into a dynamic text box. The problem is, I have 8 boxes so I have to have 8 different instances of the same box and 8 different functions (1 for each instance). I know there has got to be an easier way...please help!