I have this as2 script that creates a slideshow, but for some reason the slideshow only works after I refresh the encompassing html page once (in all browsers)
You can see it here: http://www.kabinart.net/index5.php
this.createEmptyMovieClip(“container”,1);
var imagesNumber:Number = 10;
var scrolling:Boolean = true;
_root.attachMovie(“image1”,“large_mc”,4);
large_mc._x = (Stage.width - large_mc._width)/2;
large_mc._y = 0;
pImage = 0; if (pImage<1){pImage=1;}
nImage = 2; if (nImage>imagesNumber){nImage=imagesNumber;}
myThumb_mc.largerImage = 1;
container.onEnterFrame = function() {
startshow();
}
startTime = 4;
function startshow()
{
this.timer = int(5-(getTimer()-startTime)/500);
if (Number(this.timer) == 0) {
ximg = nImage-1; if(ximg < 1){ximg=1};
//large_mc.removeMovieClip();
_root.attachMovie(“image”+ximg,“large_mc”,4);
_root.attachMovie(“image”+nImage,“large_mc1”,3);
new Tween(large_mc, “_alpha”, Regular.easeOut, 100, 0, 1, true);
nImage = nImage+1; if (nImage>imagesNumber){nImage=1;} pImage = nImage - 2; if (pImage<1){pImage=1;}
startTime = getTimer();
}
};