Topic: After last image, start at first again!

Hi.

I want the gallery to start at the first image again, when the last image of gallery is hit, by clicking the NExtImageButton again and again.


Thanks.

Re: After last image, start at first again!

Okay I found the code.

private function onClickNext():Void{      
   mThumbArea.selectedThumbIndex ++;   
} 
    

but what shall iw write instead of  mThumbArea.selectedThumbIndex ++?

Re: After last image, start at first again!

In the ThumbArea.as file in the 'set selectedThumbIndex(index:Number)' function, change this:

if (index >= mXMLManager.imageCount ) return;

to this:

if (index >= mXMLManager.imageCount ) index = 0;
Felix Turner
SimpleViewer Support Team.

Re: After last image, start at first again!

Sorry but that does not work.