# Captivate controller stops working on 2nd clip?!

**URL:** <https://forum.kirupa.com/t/captivate-controller-stops-working-on-2nd-clip/243497>\
**Category:** flash\
**Created:** [November 7, 2007, 5:35pm UTC](https://forum.kirupa.com/t/captivate-controller-stops-working-on-2nd-clip/243497 "2007-11-07T17:35:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashpipe](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@flashpipe](https://forum.kirupa.com/u/flashpipe)\
**Post date:** [November 7, 2007, 5:35pm UTC](https://forum.kirupa.com/t/captivate-controller-stops-working-on-2nd-clip/243497/1 "2007-11-07T17:35:52Z")

</div>

I’ve got a flash movie and I’m loading a series of captivate movies into it. I’ve got a custom controller in flash to let the user move from slide to slide within the movies. It works great when I publish it and run the swf. It works great when I make an exe out of it, but, when I play it in the browser, it works for the first movie, but, once it gets to the second movie (and all subsequent movies), it doesn’t work anymore???

I’m using the following code to load the movies:

```auto
 var movieArray:Array = new Array("1_2", "1_5", "1_7", "1_9", "1_10", "1_11", "1_13", "1_14");
var movieNum:Number = 0;
//
//test for end of Captivate
capFT_mc.onEnterFrame = function() {
    if ((this._parent.captivate_mc.rdinfoFrameCount == this._parent.captivate_mc.rdinfoCurrentFrame)) {
        nextCapEF();
    }
};
//
//function for next.swf animation
function nextCapEF() {
    if (movieNum<9) {
        movieNum++;
        captivate_mc.loadMovie("Package/"+movieArray[movieNum-1]+".swf");
    } else if (movieNum == 9) {
        gotoAndPlay("end");
    }
}
nextCapEF();
stop();

```

And, I’m using the following code on the control buttons, Next & Back:

```auto
navPanel_mc.forwBtn_mc.onRelease = function() {
    if (this._parent._parent.captivate_mc.rdinfoCurrentFrame<this._parent._parent.captivate_mc.rdinfoFrameCount) {
        this._parent._parent.captivate_mc.rdcmndNextSlide = 1;
    }
};
navPanel_mc.backBtn_mc.onRelease = function() {
    if (this._parent._parent.captivate_mc.rdinfoCurrentFrame>1) {
        this._parent._parent.captivate_mc.rdcmndPrevious = 1;
    }
};

```

Thanks!!
