A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: xml & display order in flash

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    3

    xml & display order in flash

    hey guys,

    i have this xml gallery, which is working pretty good if there wasnt this only problem. the pictures that are being loaded into my gallery are displayd in the wrong order (the first picture 1.jpg is always shown first, i want it to be the way around...).
    i have tried already to change the "for" comand, but i cant make it work.
    i hope someone can help me out.
    the fla and xml files can be download here: http://www.4fukkinlyn.com/gal.zip

    thanks
    regards

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    In the 'function TG_aufbau(num)' for loop, try changing as follows...
    Code:
    for (var i = bilder; i > 0; i--) {
    	var tn = gal.pics.attachMovie("tn_holder", "tn_" + i, 10 + i);
    	tn.bg._xscale = tn.bg._yscale = 5;
    	tn.pic.loadMovie("bilder_button/gallery/" + navi[num]["folder"] + "/tn/" + i + ".jpg");
    	tn.bigpic = "bilder_button/gallery/" + navi[num]["folder"] + "/img/" + i + ".jpg";
    	tn.bg.c = 0;
    And changing the (i+1) to i.

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    3
    Superb, works great!
    i cannot tell you how much you helped me out.
    thanks a lot!

    regards

    jeune

Tags for this Thread

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