This content has been marked as final. Show 9 replies
you can add a large image attribute to your slide tags as shown below. then if edit the code in updateSlide() and add preloadF() (and a target movieclip for the large image), the code shown below should allow your images to load the large image when pressed:
<slideNode jpegURL="images/image1.jpg" large_jpegURL="images/largeImage1.jpg">A sea horse</slideNode>
<slideNode jpegURL="images/image2.jpg" large_jpegURL="images/largeImage2.jpg">Sea anemone</slideNode>
jpegURL="images/image4.jpg" large_jpegURL="images/largeImage4.jpg">Another sea horse</slideNode>
jpegURL="images/image5.jpg" large_jpegURL="images/largeImage5.jpg">Some kind of jellyfish</slideNode>
thanks kglad, i'll give it a try.
i assume i just add the attached code to the existing code?
I added the code inside the <Slides> tage to the xml doc and added the function code to the frame script with the original code. I made another assumption and gave the thumbnail image the instance name "targetClip" but nothing happened.
What'd I miss?
targetClip is the instance name of a movieclip into which you load your thumbnails. the tutorial author created that movieclip.
you need to create the additional movieclip someotherTargetMC and position that where you want on your stage. someotherTargetMC will contain the large image loaded after the thumbnail is pressed.
thanks. I'll give it a try.
Do I understand this correctly, The code seems to use the regular version of the image as the thumbnail?
The user clicks on the image in "targetClip" an calls the larger image in "someotherTargetMC"?
What if I want to use a number of thumbnails on the stage at once allowing the user to click on any one? Will this code work for that as well?
yes, the code i gave above assumes the initially loaded pic is the thumbnail and clicking the thumbnail loads the large pic.
if you want to place a number of thumbnails on-stage at one time, then you'll need to completely redo flash example that you're using. it'd probably be easier to start from scratch than to edit the example's code.
I'm gonna try and figure something out. You were very helpful and I appreciate it greatly.