gotoAndPlay frame in main scene help! AS 3.0

I have a mc INSIDE one of the layers in main scene, how to make it go to specified frame back on the main scene, when finished playing? Flash, cs4, as3. Thnx.