1 Reply Latest reply on Aug 25, 2007 4:51 PM by satrop

    NEED some help with this code.

    satrop Level 1
      Good day all! I've had this problem for some now and I cant get the code to work right. You can get the .fla here> http://thedesignport.com/Help/Final(Flash8).fla CS3> http://thedesignport.com/Help/Final.fla< and heres the xml file I'm using> http://thedesignport.com/Help/New_images.xml<.

      So this is the problem. I have a bar to the right you scroll over it and it slides out. The thumbnails are loaded for the xml sheet (just add you own images to see it work). Now if you click on an img its spoused to load the bigger version of the image to left of the bar. But it doesn't. And the thumbnails are spoused to scroll up and down. I had this working when I was just using a MC for the thumbnails but I wanted to have the all imgs working from the xml sheet to save time, size and future modifications. You'll see the left/ right arrows bottom right the move you on to the next img and back, that works fine.

      I think the problem lies in the faked that the thumbnails are inside a MC and I cant get the code right to tell the thumbnails to load the pictures into the "empty_mc" on the _root. And I cant get the thumbnails to scroll up and down.

      Any help would be great as I want to put this to bed.

      Thank you all!
        • 1. Re: NEED some help with this code.
          satrop Level 1
          Ok so I'm getting some what close to what I need! Just one more issue. Have a look at this>

          function thumbnails_fn(k) {
          thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
          tlistener = new Object();
          tlistener.onLoadInit = function(target_mc) {
          target_mc._y = hit_top._y+(target_mc._width-15)*k;
          target_mc.pictureValue = k;
          target_mc.onRelease = function() {
          p = _root.pictureValue-1;
          target_mc.onRollOver = function() {
          this._alpha = 50;
          target_mc.onRollOut = function() {
          this._alpha = 100;
          image_mcl = new MovieClipLoader();
          image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

          This code is in a MC and the empty MC to hold the big images in on the _root. The problem I'm having is when I click on the thumbnail(inside a MC) the big image (on the _root.) that comes up is just the next one in the sequence not the image it should be and if I click the same thumbnail again it just moves on to the next image and so on and so forth.

          Can any one help?