A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: HELP ME!!! need to change horizontal thumbnails to vertical

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    13

    HELP ME!!! need to change horizontal thumbnails to vertical

    Hey I just took a tutorial on how to make a thumbnail slideshow and its almost exactly what I need for my website but the thumbnails are horizontal and I need them vertical. The tutorial is here: http://www.kirupa.com/developer/mx2004/thumbnails.htm

    He even mentions in the begining you can show them in a grid but doesnt explain how. HELP HELP. Im freaking out as I have a deadline. I have attached the code and the flash file which works horizontally but not vertically.

    I tried changing the x values to y but that just didn't show any images at all. Can anyone please please pllllleeeease help me. I've been working on this for nearly a month and not moving forward.

    Here is the code for the thumbnails. it pulls from an xml file.
    thumbnails = [];
    thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
    thumbnails_fn(i);
    function thumbNailScroller() {

    // thumbnail code!
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 10;
    tscroller.onEnterFrame = function() {

    if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {

    if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {

    thumbnail_mc._x -= scroll_speed;

    } else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {

    thumbnail_mc._x += scroll_speed;

    }

    } else {

    delete tscroller.onEnterFrame;

    }

    };

    }

    function thumbnails_fn(k) {

    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {

    target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
    target_mc.pictureValue = k;
    target_mc.onRelease = function() {

    p = this.pictureValue-1;
    nextImage();

    };
    target_mc.onRollOver = function() {

    this._alpha = 50;
    thumbNailScroller();

    };
    target_mc.onRollOut = function() {

    this._alpha = 100;

    };

    };
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);

    }
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center