# Wait until frames end not interval

**URL:** <https://forum.kirupa.com/t/wait-until-frames-end-not-interval/177932>\
**Category:** Uncategorized\
**Created:** [February 6, 2006, 4:13pm UTC](https://forum.kirupa.com/t/wait-until-frames-end-not-interval/177932 "2006-02-06T16:13:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jt\_01](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@Jt\_01](https://forum.kirupa.com/u/Jt_01)\
**Post date:** [February 6, 2006, 4:13pm UTC](https://forum.kirupa.com/t/wait-until-frames-end-not-interval/177932/1 "2006-02-06T16:13:57Z")

</div>

Basically is there any way to make kirupas xml slideshow wait until a loaded movies frames have reaced an end before loading the next image/swf?

```auto
http://www.kirupa.com/developer/mx2004/xml_slideshow3.htm/

```

I’ve added a check of the current frames against totalframes into the slideshow function but its not working…

```auto

function slideshow() {
    myInterval = setInterval(pause_slideshow, delay);
    function pause_slideshow() {
        clearInterval(myInterval);
    if (this._currentframe>=this._totalframes){
        if (p == (total-1)) {
            p = 0;
            firstImage();
        } else {
            nextImage();
        }
    }
    }
}

```

Thanks!
