# Actionscript 2.0 - Simple Slideshow IN ORDER

**URL:** <https://forum.kirupa.com/t/actionscript-2-0-simple-slideshow-in-order/270046>\
**Category:** flash\
**Created:** [September 4, 2008, 4:55pm UTC](https://forum.kirupa.com/t/actionscript-2-0-simple-slideshow-in-order/270046 "2008-09-04T16:55:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CVJason](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@CVJason](https://forum.kirupa.com/u/CVJason)\
**Post date:** [September 4, 2008, 4:55pm UTC](https://forum.kirupa.com/t/actionscript-2-0-simple-slideshow-in-order/270046/1 "2008-09-04T16:55:08Z")

</div>

Greetings,

Wonderful forum… lots of great questions and answers.

Here’s my deal. I’m doing the very simplest of slideshows which will later be exported to .swf and converted to a .scr.

The code I’m working off allowed the .swf to use a small bit of actionscipt to run through the bitmaps contained in the file. Looks like this:

with (\_root.image.pics) {  
gotoAndStop( Math.round( Math.random()\* 20 ) );  
}

Pretty elegant, methinks.

Alas, what I don’t know how to do is get these ■■■■ images to play IN ORDER. I’m sure it’s simple, but my searches have turned up zilch. I’ve tried increments (++) and I’m too much a Newb to know how to use arrays (like how I would call the images in my folder within an array - way over my head.)

Is there a simple way to get these images to get called in a range of some kind? Like “gotoAndStop(range 1-20)”?

I’ve been at this for a while now, and every tree I bark up has been the wrong one. For the sake of my hairline, can someone please offer me a quick bit of advise. My eternal gratitude awaits.

Regards,  
Jason
