# AS2 controlling movie clips timeline gotoAndPlay

**URL:** https://forum.kirupa.com/t/as2-controlling-movie-clips-timeline-gotoandplay/318423
**Category:** flash
**Created:** [January 19, 2011, 7:37pm UTC](https://forum.kirupa.com/t/as2-controlling-movie-clips-timeline-gotoandplay/318423 "2011-01-19T19:37:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kedge](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kedge](https://forum.kirupa.com/u/Kedge)
#### Post date: [January 19, 2011, 7:37pm UTC](https://forum.kirupa.com/t/as2-controlling-movie-clips-timeline-gotoandplay/318423/1 "2011-01-19T19:37:22Z")

</div>

AS2 CS5  
Hi there, i am experiencing a similar problem! (beginner student of flash!!) i have a movie clip called MCMAINCLIP and within that MC i have MCPhotos.

I am trying to add script to a button in MCMAINCLIP allowing me to control the timeline of MCPhotos.

I am using:

on(release){  
\_MCPhotos.gotoAndPlay(“IMG1”);  
}

i have also tried: on(release){  
\_root\_MCPhotos.gotoAndPlay(“IMG1”);  
}

but i am having no luck what so ever!

all the script is trying to do is move to specified frame label in MCPhotos.

Any help would be massively appreciated.

Thanks in advance

Edd
