# MX 2004 slideshow troubles

**URL:** <https://forum.kirupa.com/t/mx-2004-slideshow-troubles/69964>\
**Category:** flash\
**Created:** [November 9, 2004, 4:59pm UTC](https://forum.kirupa.com/t/mx-2004-slideshow-troubles/69964 "2004-11-09T16:59:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Floppy](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@Floppy](https://forum.kirupa.com/u/Floppy)\
**Post date:** [November 9, 2004, 4:59pm UTC](https://forum.kirupa.com/t/mx-2004-slideshow-troubles/69964/1 "2004-11-09T16:59:46Z")

</div>

i need to make a slideshow for a photo gallery…  
when the user clicks a button the first photo is loaded and shown… 10 seconds after this the next photo needs to be loaded…

this is my function and it is not working properly… can anyone help?

```auto
cucu = function(k){
      num=k;
      apasat._x=this._x;
  nume.titlul=this.id;
  nume._visible=true;
  pic2._alpha=0;
  _level0.noir.loader.tween("_alpha", 45, 0.5, "easeoutquad");
  pic2.loadMovie("noir/noir"+k+".jpg"); 
  
          this.onEnterFrame = function() {
 _level0.noir.loading.loader._visible=true; 
          if (pic2.getBytesTotal!=0){
 _level0.noir.loader._width=(pic2.getBytesLoaded()/pic2.getBytesTotal()*300); 
             _level0.noir.loading._alpha=100-pic2.getBytesLoaded()/pic2.getBytesTotal()*85}
                  if (pic2._height>=300) {
                      _level0.noir.loader._alpha+=(0-_level0.noir.loader._alpha)/10;
                      pic2._x=40-pic2._width/2;
                      removeMovieClip(pic3);
                      pic2._alpha+=(100-pic2._alpha)/25
                      pic2.duplicateMovieClip(pic3, 100);
                      var pict = pic2.duplicateMovieClip(copy, 4)
                      pict._visible=true;
                      pict._alpha=100;
                      reset=getTimer();
                      this.onEnterFrame= function(){
                      if (getTimer()-reset>10000) {
                      cucu(num-1);
                      reset = getTimer();}}
                      }}}

```
