Hi,
I was reading this post http://board.flashkit.com/board/show...=671551&page=1

I had the same question, and it's hard for me to solve my problem with my gallery. It works fine, all I need is someone to help me out to include links in my XML file. I want the link to be at the <desc>text</desc>. The link should be the word "text".
The gallery is built in Flash and loading XML with the photos.
I would really appreciate any help.


here are my files:

1. FLASH script:

myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(ok) {
if (ok) {
//process data
allGalleryData = this.firstChild.childNodes;
for (i=0; i<allGalleryData.length; i++) {
newPiece = sliderHolder_mc.slider_mc.attachMovie('template', 'piece'+i, i);
newPiece._x = i*newPiece._width;
newPiece.heading_txt.text = allGalleryData[i].firstChild.firstChild;
newPiece.desc_txt.text = allGalleryData[i].firstChild.nextSibling.firstChild;
newPiece.load_btn.imageName = allGalleryData[i].firstChild.nextSibling.nextSibling.firstChild;
newPiece.holder_mc.loadMovie('portfolio/print/'+newPiece.load_btn.imageName);
newPiece.load_btn.onRelease=function(){
bigImage_mc.loadMovie('images/'+this.imageName)


}
//trace(allGalleryData[i].firstChild.firstChild);
newBut = _root.attachMovie('numTemplate', 'num'+i, i);
newBut._y = sliderHolder_mc._y+sliderHolder_mc._height-15;
newBut._x = (i*newBut._width)+sliderHolder_mc._x+15;
newBut.myNum = i;
newBut.num_txt.text = i+1;
newBut.onRelease = function() {
targX = 0-(this.myNum*360);
};
}
targX = 0;
sliderHolder_mc.slider_mc.onEnterFrame = function() {
this._x -= (this._x-targX)/2;
};
} else {
trace('what file?');
}
};
myXML.load('xml/print.xml');


---------------------------------------------------------------------
and the


2. XML file:

<?xml version="1.0" encoding="iso-8859-1"?>
<gallery heading="Photography">
<piece>
<heading>Piece 1</heading>
<desc>text</desc>
<image>1.jpg</image>
</piece>

<piece>
<heading>Piece 2</heading>
<desc>text</desc>
<image>2.jpg</image>
</piece>

</gallery>