hi all. I am pretty new to actionscript.
I am trying to make a photo gallery with xml.( to be honest , i am just trying to modify the fla file I found on other web site to something I want)
First of all, I loaded thumbnail images at random place.
( as I wanted to make them look like spreading round randomly at the table)
then once each thumbnail is clicked, big image will open up on top of it.
so far so good.
then I have a problem to close the big image as well as the discription about the image.
I can not see any thumbnails unless big image disappears.
I put all the actionscript on frame1.
[COLOR=Blue]myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes*;
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
this.thumbHolder._x =Math.random()*500;
this.thumbHolder._y = Math.random()*500;
this.thumbHolder._rotation = Math.random()*360;
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;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load(“xmlphoto.xml”);[/COLOR]
this is the flash site I am aiming for.
http://flash-bucks.com/flash/album/a10a1/sample.html
could somebody please help me?