# Using an XML /FlashMXPro2k4 to access an array

**URL:** https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755
**Category:** flash
**Created:** [September 9, 2004, 7:00pm UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755 "2004-09-09T19:00:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![dwilder](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dwilder](https://forum.kirupa.com/u/dwilder)
#### Post date: [September 9, 2004, 7:00pm UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/1 "2004-09-09T19:00:24Z")

</div>

Could someone please explain how to use an XML file and an image array and FlashMXPro2004 to run a slideshow/presentation that uses no buttons but simply starts playing when the user accesses the page? There are 14 images and they just loop.

Thanks for your help  
dwilder

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 9, 2004, 7:03pm UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/2 "2004-09-09T19:03:09Z")

</div>

addendum to my above post—I have a file that works using code from Macromedia called something like xml/jpg slideshow. It uses a next and previous button.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 10, 2004, 5:36am UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/3 "2004-09-10T05:36:57Z")

</div>

Hi

Just check out this Link.

[http://www.macromedia.com/support/flash/applications/jpeg\_slideshow\_xml/](http://www.macromedia.com/support/flash/applications/jpeg_slideshow_xml/)

I hope this will clear your doubts…

ashish

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 10, 2004, 12:39pm UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/4 "2004-09-10T12:39:27Z")

</div>

> [@ashishchandras](#):
>
> Hi
> 
> Just check out this Link.
> 
> [http://www.macromedia.com/support/flash/applications/jpeg\_slideshow\_xml/](http://www.macromedia.com/support/flash/applications/jpeg_slideshow_xml/)
> 
> I hope this will clear your doubts…
> 
> ashish

Thanks for answering—Actually, that’s the file I started with—my problem is it is based on a “next/prev” action to advance the slides and what I need to do is show the slides in an automatic loop that just displays one side after another and I don’t know how to tell the XML to do that. Naturally it’s probably really obvious and I’m looking in the wrong place.  
d.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 10, 2004, 12:58pm UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/5 "2004-09-10T12:58:35Z")

</div>

> [@dwilder](#):
>
> Thanks for answering—Actually, that’s the file I started with—my problem is it is based on a “next/prev” action to advance the slides and what I need to do is show the slides in an automatic loop that just displays one side after another and I don’t know how to tell the XML to do that. Naturally it’s probably really obvious and I’m looking in the wrong place.  
> d.

Hi,

I got ur problem. There is something called as setInterval. You can use that which calls a partiular function where u can increment the values one by one without depending on any event.

Just put this code into a new movie and check…how it works…

var nextImg = 1; // index value  
setInterval( function(){ trace(“interval called” + nextImg); nextImg++; }, 2000 );

you can increment or decrement interval by changing milliseconds (here its 2000)

Cheers  
aShIsH

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 16, 2004, 12:58am UTC](https://forum.kirupa.com/t/using-an-xml-flashmxpro2k4-to-access-an-array/63755/6 "2004-09-16T00:58:26Z")

</div>

Thanx—I’ll try that–I’ve been using “onLoad” to no avail
