Problem Duplicating MovieClip

Hi, Im hoping someone can help me, I want to duplicate a MC from within a MC. When I do it on my main timeline it works fine but when i place the code inside a MC it doesnt work. Im nearly sure that it’s a path problem but I can’t figure it out. I’ve attached the file.

This is the line that’s causing me the problems:

duplicateMovieClip(_root.B2, “boxes”+i, 0);

Any help or suggestions would be great, thanks.