Playing frames inside a MC inside a MC that is inside a MC

much like the title says. how do i put code in the main timeline

such as
gotoAndPlay(x)

x refering to a a frame inside a MC inside a MC. thx for any help