Groups | Blog | Home
all groups > flash (macromedia) > february 2006 >

flash (macromedia) : Photo gallery help needed


chopper21
2/16/2006 8:26:12 PM
Ok so what I want is to have the thumbnails in rows of 3 and lined up, the big
image also needs lined up abit as its to close to the bottom and should be
centred also instead of when the fla opens it says choose thumb id like the
first picture to show instead of that text. I would also like the background
of the thumbs to be all black instead of that huge white rectangle. Ive
included all my files here in a zip folder, if anyone can help I would greatly
appreciate it as ive been trying to do this for days and no matter what I do I
cant get it right as im very new to flash.
http://rapidshare.de/files/13423253/xmlphoto.zip.html

Thanks in advance
steve
chopper21
2/17/2006 12:00:00 AM
im still needing help if anyone can

tralfaz
2/17/2006 2:37:25 PM
[quoted text, click to view]

I would do it for you if you can save as version 6 (MX). (that's the
version I have)
tralfaz

chopper21
2/17/2006 3:33:54 PM
il pay someone to do this if you can

there must be someone who can help

alanwallace4
2/18/2006 1:16:54 AM
I would give it a go myself if i could download it.
myIP
2/18/2006 4:32:16 AM
My gosh that code is a mess! It was even a mess to download the file! To
change the background to black double click on ?thumbnails? and just change the
color. To center the main pic just go to the stage click on it and move it up.
The code below will distribute the thumbnails 3 in each row and insert the
first pic to main. Good luck.

myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success)
{
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i<numimages; i++)
{
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);

ratio = Math.floor(i / 3);
this.thumbHolder._x = 140 * (i - 3 * ratio);
this.thumbHolder._y = 165 * ratio;

this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image",
0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;

loader.loadMovie(thumbnails.thumbnail0.main);

this.thumbHolder.onRelease = function()
{
loader.loadMovie(this.main);
title_txt.text = this.title;
}

}
};
myPhoto.load("xmlphoto.xml");
chopper21
2/19/2006 1:45:19 AM
chopper21
2/19/2006 1:48:22 AM
AddThis Social Bookmark Button