I am new to actionscript and have this template code to load jpgs into flash. My sub menu needs 11 pics. To see the different pics you rollover a square that shows a small preview pic (s1.jpg, s2.jpg,etc.). When you click the square the larger image loads (1.jpg, 2.jpg, etc.). I can get the small menu pics to load 1-11 (s1.jpg, etc). But once I get past pic 6 on the small menu the large images just show 1-6 over again instead of showing large image 7-11. So my small menu can load the small menu pic #8 (s8.jpg) correctly, but when you click it the larger image just reloads #2 (2.jpg) instead of #8 (8.jpg). How do I get all my 11 large images to load instead of just 1-6? Is there something in the code below that I should fix? Thanks!
My code looks like this:
_root.numpics=11;
for (i=2;i<_root.numpics;i++) {
duplicateMovieClip(“s1”,“s”+i,i);
setProperty(“s”+i,_y,getProperty(“s”+(i-1),_y)-16.2);
}
for (i=1;i<_root.numpics;i++) {
a=i;while (a>11) {a-=11};
this[“s”+i].pic.pic.loadMovie(‘gallery/’+_root.gallery+’/s’+a+’.jpg’);
this[“s”+i].viewed=false;
this[“s”+i].select=false;
}
this[“s”+1].viewed=true;
_root.selectgallery=1;
_root.pic=‘gallery/’+_root.gallery+’/1.jpg’;
_parent.bpic.gotoAndPlay(2);
stop();
[URL=“http://www.stos-id.com/gallery”]
I changed the pics under the people menu to be numbered so you can see the issue after pic 6. the small menu pics load correctly but not the large ones reset after 6. it’s weird