# attachMovie - help with image gallery!?

**URL:** https://forum.kirupa.com/t/attachmovie-help-with-image-gallery/270318
**Category:** flash
**Created:** [September 8, 2008, 6:53pm UTC](https://forum.kirupa.com/t/attachmovie-help-with-image-gallery/270318 "2008-09-08T18:53:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![robson\_jerome](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@robson\_jerome](https://forum.kirupa.com/u/robson_jerome)
#### Post date: [September 8, 2008, 6:53pm UTC](https://forum.kirupa.com/t/attachmovie-help-with-image-gallery/270318/1 "2008-09-08T18:53:54Z")

</div>

Hi. I’m building an image gallery in Flash, and I’ve struck a problem.  
Here’s what I have so far: A series of movie clip buttons which animate quite nicely.

I want to make it so that when you click on one of the buttons, a series of thumbnails appears (I would put them all in a movieclip). Here’s my code for one of the buttons:

> on (rollOver) {  
> gotoAndPlay(“over”);  
> }  
> on (rollOut) {  
> gotoAndPlay(“out”);  
> }  
> on (press) {  
> attachMovie(“india”,“india\_thumbs”,0);  
> setProperty(“india\_thumbs”, \_x, “308”);  
> setProperty(“india\_thumbs”, \_y, “261.5”);  
> }

When I click on that button, the thumbnails appear, but they are inside the button mc. I want to either make the “india\_thumbs” mc appear in a blank mc, or make it appear in its own layer.

I’m fairly a Actionscript novice, but can you help me?
