Hello, I purchases a ac2 slide show which makes the images appear in random order when browser is refreshed. Is there a solution to this? I've provided the code below also attched the .fla file.Thanks!
width=WidthSpacing;
var pic:Object = new Object();
pic.onLoadInit = function(target:MovieClip){
target.forceSmoothing = true;
while (target._height>BarHeight-2*borderSize){
target._height-=target._height/100;
target._width-=target._width/100;
}
target._x=width+borderSize;
target._y=borderSize+barBorder+(BarHeightOver-BarHeight)/2;
target.width=target._width;
target.height=target._height;
target.load=true;
target._alpha=alpha;
width+=(target._width+Spacing+(2*borderSize));
for (j=0;j<xml.firstChild.childNodes.length;j++){
if (target==scroll.bar["picture"+j].pic){
scroll.bar["picture"+j].y=scroll.bar["picture"+j]._y;
scroll.bar["picture"+j].x=scroll.bar["picture"+j]._x;
if (background){
with(scroll.bar["picture"+j].background){
beginFill(0x666666,100);
lineTo(target._width+2*borderSize,0);
lineTo(target._width+2*borderSize,target._height+2 *borderSize);
lineTo(0,target._height+2*borderSize);
lineTo(0,0);
_x=target._x-borderSize;
_y=target._y-borderSize;
}
}
scroll.bar["picture"+j].onRollOver = function(){
this.caption=true;
}
scroll.bar["picture"+j].onRollOut = function(){
this.caption=false;
scroll.info.text="";
}
scroll.bar["picture"+j].onRelease = function(){
for (k=0;k<xml.firstChild.childNodes.length;k++)
if (this==scroll.bar["picture"+k]){
openWinCentre(xml.firstChild.childNodes[k].attributes.address, xml.firstChild.childNodes[k].attributes.target_winName, int(xml.firstChild.childNodes[k].attributes.width), int(xml.firstChild.childNodes[k].attributes.height), int(xml.firstChild.childNodes[k].attributes.toolbar), int(xml.firstChild.childNodes[k].attributes.location), int(xml.firstChild.childNodes[k].attributes.directories), int(xml.firstChild.childNodes[k].attributes.status), int(xml.firstChild.childNodes[k].attributes.menubar), int(xml.firstChild.childNodes[k].attributes.scrollbars), int(xml.firstChild.childNodes[k].attributes.resizable));
//this.getURL(xml.firstChild.childNodes[k].attributes.link,xml.firstChild.childNodes[k].attributes.target);
}
}
}
}
}
var imag:MovieClipLoader = new MovieClipLoader();
imag.addListener(pic);
for (i=0;i<xml.firstChild.childNodes.length;i++){
scroll.bar.createEmptyMovieClip("picture"+i,i);
scroll.bar["picture"+i].createEmptyMovieClip("background",scroll.bar["picture"+i].getNextHighestDepth());
scroll.bar["picture"+i].createEmptyMovieClip("pic",scroll.bar["picture"+i].getNextHighestDepth());
imag.loadClip(xml.firstChild.childNodes[i].attributes.url,scroll.bar["picture"+i].pic);
}
scroll.createTextField("info",scroll.getNextHighes tDepth(),0,BarHeightOver+barBorder*2,0,0);
scroll.info.autoSize="center";
scroll.barMask.onEnterFrame=function(){
for (i=0;i<xml.firstChild.childNodes.length;i++){
if (scroll.bar["picture"+i].caption){
scroll.textBar.info.text=xml.firstChild.childNodes[i].attributes.title;
scroll.textBar.info.setTextFormat(textFormat);
scroll.bar["picture"+i].pic._alpha=100;
scroll.info.text=xml.firstChild.childNodes[i].attributes.title;
scroll.info.setTextFormat(textFormat);
if (background)
scroll.info._x=scroll.bar["picture"+i].background._x+scroll.bar._x;
else
scroll.info._x=scroll.bar["picture"+i].pic._x+scroll.bar._x+(scroll.bar["picture"+i].pic._width-scroll.info._width)/4;
var color:Color = new Color(scroll.bar["picture"+i].background);
color.setRGB(borderColorOnOver);
if (efect==1)
scroll.bar["picture"+i]._y=5;
if (efect==2)
scroll.bar["picture"+i]._y=-5;
if ((efect==3)&&(scroll.bar["picture"+i]._height<BarHeightOver)){
scroll.bar["picture"+i].swapDepths(xml.firstChild.childNodes.length)
scroll.bar["picture"+i].pic._height+=5*scroll.bar["picture"+i].pic._height/100;
scroll.bar["picture"+i].pic._width+=5*scroll.bar["picture"+i].pic._width/100;
scroll.bar["picture"+i]._y-=5*scroll.bar["picture"+i]._height/200;
scroll.bar["picture"+i]._x-=5*scroll.bar["picture"+i]._width/200;
scroll.bar["picture"+i].background._width=scroll.bar["picture"+i].pic._width+(2*borderSize);
scroll.bar["picture"+i].background._height=scroll.bar["picture"+i].pic._height+(2*borderSize);
}
}
else{
var color:Color = new Color(scroll.bar["picture"+i].background);
color.setRGB(borderColor);
scroll.bar["picture"+i].pic._alpha=alpha;
if ((efect==1)or(efect==2))
scroll.bar["picture"+i]._y=0;
if ((efect==3)&&(scroll.bar["picture"+i].background._height>BarHeight)&&(background)){
scroll.bar["picture"+i].swapDepths(i);
scroll.bar["picture"+i].pic._height-=5*scroll.bar["picture"+i].pic._height/100;
scroll.bar["picture"+i].pic._width-=5*scroll.bar["picture"+i].pic._width/100;
scroll.bar["picture"+i]._x+=5*scroll.bar["picture"+i].pic._height/200;
scroll.bar["picture"+i]._y+=5*scroll.bar["picture"+i].pic._width/200;
scroll.bar["picture"+i].background._height=scroll.bar["picture"+i].pic._height+(2*borderSize);
scroll.bar["picture"+i].background._width=scroll.bar["picture"+i].pic._width+(2*borderSize);
if (scroll.bar["picture"+i]._height<=BarHeight){
scroll.bar["picture"+i].pic._width=scroll.bar["picture"+i].pic.width;
scroll.bar["picture"+i].pic._height=scroll.bar["picture"+i].pic.height;
scroll.bar["picture"+i]._x=scroll.bar["picture"+i].x;
scroll.bar["picture"+i]._y=scroll.bar["picture"+i].y;
scroll.bar["picture"+i].background._height=scroll.bar["picture"+i].pic._height+(2*borderSize);
scroll.bar["picture"+i].background._width=scroll.bar["picture"+i].pic._width+(2*borderSize);
}
}
if ((efect==3)&&(scroll.bar["picture"+i]._height>BarHeight)&&(background!=true)){
scroll.bar["picture"+i].swapDepths(i);
scroll.bar["picture"+i].pic._height-=5*scroll.bar["picture"+i].pic._height/100;
scroll.bar["picture"+i]._y+=5*scroll.bar["picture"+i].pic._width/200;
scroll.bar["picture"+i].pic._width-=5*scroll.bar["picture"+i].pic._width/100;
scroll.bar["picture"+i]._x+=5*scroll.bar["picture"+i].pic._height/200;
if (scroll.bar["picture"+i]._height<=BarHeight){
scroll.bar["picture"+i].pic._width=scroll.bar["picture"+i].pic.width;
scroll.bar["picture"+i].pic._height=scroll.bar["picture"+i].pic.height;
scroll.bar["picture"+i]._x=scroll.bar["picture"+i].x;
scroll.bar["picture"+i]._y=scroll.bar["picture"+i].y;
}
}
}
}
if ((this._ymouse>0)&&(this._ymouse<BarHeightOver)&&( this._xmouse>=0)&&(this._xmouse<=BarWidth)){
xmouse=this._xmouse;
}
if (((xmouse-firstWidth)>0)&&((xmouse+lastWidth)<BarWidth)){
scroll.bar._x-=(Math.abs((((width+WidthSpacing)-BarWidth)/BarWidth)*(xmouse-lastWidth+(firstWidth+lastWidth)*(xmouse/(BarWidth-lastWidth))))-Math.abs(scroll.bar._x-this._x))/10;
}
if ((xmouse-firstWidth)<0){
if (scroll.bar._x<this._x)
scroll.bar._x+=(Math.abs(scroll.bar._x)+this._x)/10;
}
if ((xmouse+lastWidth)>BarWidth){
if (scroll.bar._x>-((width+WidthSpacing)-BarWidth-this._x))
scroll.bar._x-=(((width+WidthSpacing)-BarWidth-this._x)+scroll.bar._x)/10;
}
}