# Set slideshow to MC's in my array

**URL:** <https://forum.kirupa.com/t/set-slideshow-to-mcs-in-my-array/239260>\
**Category:** Uncategorized\
**Created:** [September 19, 2007, 11:58pm UTC](https://forum.kirupa.com/t/set-slideshow-to-mcs-in-my-array/239260 "2007-09-19T23:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevincompton](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevincompton/32/4049_2.png) [@kevincompton](https://forum.kirupa.com/u/kevincompton)\
**Post date:** [September 19, 2007, 11:58pm UTC](https://forum.kirupa.com/t/set-slideshow-to-mcs-in-my-array/239260/1 "2007-09-19T23:58:16Z")

</div>

I already have an array set up with a navigation and tween on the MC’s when the navigation is pressed. My question is, how would I apply a simple automated play to it.

The functions are already there that make the navigation bring up my corresponding MC, i just need some autoplay to it.

here is my source:

```auto
this.scrollIcons = function(p_offset:Number) {
    // Scrolls the icon list
    this.setIcon(this.currentIcon + p_offset);
};

this.setIcon = function(p_icon:Number) {
    // Set the currently selected icon
    if (p_icon != undefined) {
        if (p_icon < 0) p_icon = 0;
        if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
        if (p_icon != this.currentIcon) {
            this.currentIcon = p_icon;
            this.redraw(false);
        }
    }
};

```
