# Using A Button To Display Images on Frames Within a Seperate Movie Clip

**URL:** <https://forum.kirupa.com/t/using-a-button-to-display-images-on-frames-within-a-seperate-movie-clip/205933>\
**Category:** flash\
**Created:** [November 3, 2006, 10:01am UTC](https://forum.kirupa.com/t/using-a-button-to-display-images-on-frames-within-a-seperate-movie-clip/205933 "2006-11-03T10:01:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haz567](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@Haz567](https://forum.kirupa.com/u/Haz567)\
**Post date:** [November 3, 2006, 10:01am UTC](https://forum.kirupa.com/t/using-a-button-to-display-images-on-frames-within-a-seperate-movie-clip/205933/1 "2006-11-03T10:01:30Z")

</div>

So how do i do this? I’m finding it frustrating.

The way i have set it up is as such. Look at this image for reference.

![](http://i52.photobucket.com/albums/g17/Haz657/picture.jpg)

Okay in the lower left hand corner i have a movie clip with a group of buttons in it. On the right hand side i have another movie clip with the instance name of **img\_mc** , with multiple images in it which i wish to display when i press the buttons in the first movie clip.

Inside **img\_mc** I have set up each frame with an image on it, and a stop action above so that i can specify a button to go to that frame once released and stay there.

Problem is i don’t know how to code the buttons in the first movie clip. I assume you click on them and put something like this as the action -

\*on (release) {  
gotoAndPlay(this.\_parent.img\_mc);

}\*

Which is where i have tried to access the individual frames within the clip \*_img\_mc_ by pressing on the _Insert a Target Path key_ and locating a frame for it to rest on. No prompt comes up to select a frame though. How would i get it to play a frame within that movie clip and go to the image i want?

Help would be much appreciated 🙂
