problem with image loading script

  • stos
  • Born
  • Born
  • stos
  • Posts: 2

Post 3+ Months Ago

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();
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • stos
  • Born
  • Born
  • stos
  • Posts: 2

Post 3+ Months Ago

problem fixed...there was code on a hidden layer that wasn't showing up in the actions panel.
  • maahan
  • Beginner
  • Beginner
  • User avatar
  • Posts: 58

Post 3+ Months Ago

glad to hear u fixedit

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.