# Loading a movieclip after another ! HELP

**URL:** <https://forum.kirupa.com/t/loading-a-movieclip-after-another-help/259732>\
**Category:** Uncategorized\
**Created:** [May 8, 2008, 8:20am UTC](https://forum.kirupa.com/t/loading-a-movieclip-after-another-help/259732 "2008-05-08T08:20:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gettodacu](https://avatars.discourse-cdn.com/v4/letter/g/c4cdca/32.png) [@gettodacu](https://forum.kirupa.com/u/gettodacu)\
**Post date:** [May 8, 2008, 8:20am UTC](https://forum.kirupa.com/t/loading-a-movieclip-after-another-help/259732/1 "2008-05-08T08:20:41Z")

</div>

Hi all i am a begginer in flash . I have a flash app that has 9 buttons on every button there is a diferent movie with a presentation (a SWF movieclip) … i need a code that will automaticaly play’s the next movie after the previos one has finished …

i tryed using this code but with no succes … i am waiting for suggestion on how to make this work

This is the full code of the flashh app …

```auto

BttnOne.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuOne.gotoAndPlay(2);

};

BttnOne.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuOne.gotoAndPlay(11);

};

BttnOne.onRelease = function ()

{

    targety = BttnOne._y;

    mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

    currNum = 1;

};

BttnTwo.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuTwo.gotoAndPlay(2);

};

BttnTwo.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuTwo.gotoAndPlay(11);

};

BttnTwo.onRelease = function ()

{

    targety = BttnTwo._y;

    mcHolder.loadMovie("DR_mc/" + curr + "2" + ".swf");

    currNum = 2;

};

BttnThree.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuThree.gotoAndPlay(2);

};

BttnThree.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuThree.gotoAndPlay(11);

};

BttnThree.onRelease = function ()

{

    targety = BttnThree._y;

    mcHolder.loadMovie("DR_mc/" + curr + "3" + ".swf");

    currNum = 3;

};

BttnFour.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuFour.gotoAndPlay(2);

};

BttnFour.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuFour.gotoAndPlay(11);

};

BttnFour.onRelease = function ()

{

    targety = BttnFour._y;

    mcHolder.loadMovie("DR_mc/" + curr + "4" + ".swf");

    currNum = 4;

};

BttnFive.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuFive.gotoAndPlay(2);

};

BttnFive.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuFive.gotoAndPlay(11);

};

BttnFive.onRelease = function ()

{

    targety = BttnFive._y;

    mcHolder.loadMovie("DR_mc/" + curr + "5" + ".swf");

    currNum = 5;

};

BttnSix.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuSix.gotoAndPlay(2);

};

BttnSix.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuSix.gotoAndPlay(11);

};

BttnSix.onRelease = function ()

{

    targety = BttnSix._y;

    mcHolder.loadMovie("DR_mc/" + curr + "6" + ".swf");

    currNum = 6;

};

BttnSeven.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuSeven.gotoAndPlay(2);

};

BttnSeven.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuSeven.gotoAndPlay(11);

};

BttnSeven.onRelease = function ()

{

    targety = BttnSeven._y;

    mcHolder.loadMovie("DR_mc/" + curr + "7" + ".swf");

    currNum = 7;

};

BttnEight.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuEight.gotoAndPlay(2);

};

BttnEight.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuEight.gotoAndPlay(11);

};

BttnEight.onRelease = function ()

{

    targety = BttnEight._y;

    mcHolder.loadMovie("DR_mc/" + curr + "8" + ".swf");

    currNum = 8;

};

BttnNine.onRollOver = function ()

{

    this.gotoAndPlay(2);

    TextOver.MenuNine.gotoAndPlay(2);

};

BttnNine.onRollOut = function ()

{

    this.gotoAndPlay(11);

    TextOver.MenuNine.gotoAndPlay(11);

};

BttnNine.onRelease = function ()

{

    targety = BttnNine._y;

    mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

    currNum = 9;

};

function chkPP()

{

    if (statePP &lt; 1)

    {

        mcHolder.stop();

        statePP++;

        trace("stop + " + statePP);

        PP.gotoAndStop(2);

    }

    else if (statePP &gt; 0)

    {

        mcHolder.play();

        statePP = 0;

        trace("start + " + statePP);

        PP.gotoAndStop(1);

    } // end if

} // End of the function

function chkskip()

{

    if (currNum == 8)

    {

        mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

        mcHolder._lockroot = true;

        currNum = 9;

        trace(currNum);

        PPup();

        chkSlide();

    }

    else if (currNum == 9)

    {

        mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

        currNum = 1;

        trace(currNum);

        PPup();

        chkSlide();

    }

    else

    {

        currNum++;

        mcHolder.loadMovie("DR_mc/" + curr + currNum + ".swf");

        trace(currNum);

        PPup();

        chkSlide();

    } // end if

} // End of the function

function chkcurrent()

{

    if (currNum == 1)

    {

        mcHolder.loadMovie("DR_mc/" + curr + "9" + ".swf");

        currNum = 11;

        trace(currNum);

        PPup();

        chkSlide();

    }

    else

    {

        currNum--;

        mcHolder.loadMovie("DR_mc/" + curr + currNum + ".swf");

        trace(currNum);

        PPup();

        chkSlide();

    } // end if

} // End of the function

function PPup()

{

    PP.gotoAndStop(1);

    statePP = 0;

} // End of the function

function chkSlide()

{

    if (currNum == 1)

    {

        targety = BttnOne._y;

    }

    else if (currNum == 2)

    {

        targety = BttnTwo._y;

    }

    else if (currNum == 3)

    {

        targety = BttnThree._y;

    }

    else if (currNum == 4)

    {

        targety = BttnFour._y;

    }

    else if (currNum == 5)

    {

        targety = BttnFive._y;

    }

    else if (currNum == 6)

    {

        targety = BttnSix._y;

    }

    else if (currNum == 7)

    {

        targety = BttnSeven._y;

    }

    else if (currNum == 8)

    {

        targety = BttnEight._y;

    }

    else if (currNum == 9)

    {

        targety = BttnNine._y;

    } // end if

} // End of the function

stop();

statePP = 0;

_root.curr = "Mc";

mcHolder.loadMovie("DR_mc/" + curr + "1" + ".swf");

currNum = 1;

```

Thanks in advance!!!
