Problem with gotoandPlay

Hello there. I am having a problem and i cant figure it out…
In my main timelime i have some buttons and movie clip symbols. When i press for example a button which is a photo i use the following code

on(release) {
gotoAndPlay(“start”);
photosmc.gotoAndPlay(“img1”);

}

It goes to the “start” position where a symbol named photosmc exists and inside this symbol i have a timeline with many layers and it goes next on position “img1” where i have one image that appears.So far so good.Now,when the image appears and stops i want to have a button “X” and when i press it to gotoandPlay on my main timeline in a different position.In other words to leave-exit this symbol and return to the previous timelime.The problem is that photosmc is in a timeline and the button X is in the timeline of the photsmc…so how is it possible to press it and gotoandPlay a level upstairs??? I tried but it wont work…

Can someone help me on this please???