# Movie clips and buttons

**URL:** <https://forum.kirupa.com/t/movie-clips-and-buttons/229839>\
**Category:** Uncategorized\
**Created:** [June 20, 2007, 3:45pm UTC](https://forum.kirupa.com/t/movie-clips-and-buttons/229839 "2007-06-20T15:45:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nevo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nevo/32/3473_2.png) [@Nevo](https://forum.kirupa.com/u/Nevo)\
**Post date:** [June 20, 2007, 3:45pm UTC](https://forum.kirupa.com/t/movie-clips-and-buttons/229839/1 "2007-06-20T15:45:38Z")

</div>

Right been looking at this all day, been here there and everywhere and I know someone is going to go “Look at this tutorial” and I’ll be wondering why I didnt see it but…

Using a group of MCs to load images into and also as a button.  
If the image isn’t loaded into the MC the button script works fine but when I load a image into the MC it no longer functions as a button.

I’m at the extent now of putting invisible buttons above the MCs but surely there must be a easier solution, doing that seems so sloppy 🙂

I think that explains it without any code but I’ll put some anyway

```auto

    var g = current; //How many pages they have seen
    var i = 0; //variable for loop
    while (i < 8) {
        if (thumb[g] != null) {
            temp = "cap"+i;
            this[temp].text = caption[g];
            loadMovie(thumb[g], "thumb"+i+"_mc"); 
        } else {
            temp = "cap"+i;
            this[temp].text = "";
            temp = "thumb"+i+"_mc";
            this[temp].unloadMovie();
        }
     }

```

Also is there a way of doing that without “temp”? I’m pretty new to AS still 🙂

```auto

thumb0_mc.onRelease = function () {
    loadMovie(img[0], fullSize_mc);
}

```

:fab::party:
