# Senoculars xml - portfolio help

**URL:** <https://forum.kirupa.com/t/senoculars-xml-portfolio-help/166514>\
**Category:** Uncategorized\
**Created:** [October 20, 2005, 3:47pm UTC](https://forum.kirupa.com/t/senoculars-xml-portfolio-help/166514 "2005-10-20T15:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virsitil](https://avatars.discourse-cdn.com/v4/letter/v/6a8cbe/32.png) [@Virsitil](https://forum.kirupa.com/u/Virsitil)\
**Post date:** [October 20, 2005, 3:47pm UTC](https://forum.kirupa.com/t/senoculars-xml-portfolio-help/166514/1 "2005-10-20T15:47:45Z")

</div>

can somone help me on this?  
im building my portfolio out using senoculars xml portfolio ( [http://www.kirupa.com/forum/showthread.php?t=79359&highlight=xml+portfolio](http://www.kirupa.com/forum/showthread.php?t=79359&highlight=xml+portfolio) )

anyways ive change the code and added some stuff.but somehow ive broken the code that pulls the description text …( shoudl be showing below images )  
[http://www.5starrebels.com/virsitil.com/virs\_portfolio.swf](http://www.5starrebels.com/virsitil.com/virs_portfolio.swf)

it worked until i added the image fade…if anyone could help…I would appreciate it as this is my first XML venture.

* * *

var thumb\_spacing = 45;  
var columns = 5; //change this one to the number of thumbs you want to have in a row  
// load variables object to handle loading of text  
var vertical\_spacing = 11;  
var description\_lv = new LoadVars();  
description\_lv.onData = function(raw\_text) {  
description\_txt.text = raw\_text;  
};  
function GeneratePortfolio(portfolio\_xml) {  
var portfolioPictures = portfolio\_xml.firstChild.childNodes;  
for (var i = 0; i\<portfolioPictures.length; i++) {  
var currentPicture = portfolioPictures\*;  
var currentThumb\_mc = menu\_mc.createEmptyMovieClip(“thumbnail\_mc”+i, i);  
currentThumb\_mc.\_x = (i%columns)\*thumb\_spacing;  
currentThumb\_mc.\_y = Math.floor(i/columns)\*thumb\_spacing;  
currentThumb\_mc.createEmptyMovieClip(“thumb\_container”, 0);  
currentThumb\_mc.thumb\_container.loadMovie(currentPicture.attributes.thumb);  
currentThumb\_mc.title = currentPicture.attributes.title;  
currentThumb\_mc.image = currentPicture.attributes.image;  
currentThumb\_mc.description = currentPicture.attributes.description;  
currentThumb\_mc.onRollOver = currentThumb\_mc.onDragOver=function () {  
info\_txt.text = this.title;  
this.\_x = (this.\_x -2);  
this.\_y = (this.\_y -2);  
this.\_xscale = 105;  
this.\_yscale = 105;  
};  
currentThumb\_mc.onRollOut = currentThumb\_mc.onDragOut=function () {  
info\_txt.text = “”;  
this.\_x = (this.\_x +2);  
this.\_y = (this.\_y +2);  
this.\_xscale = 100;  
this.\_yscale = 100;  
};  
currentThumb\_mc.onRelease = function() {  
image\_mc.loadMovie(this.image);  
description\_lv.load(this.description);  
};  
currentThumb\_mc.onRelease = function() {  
image\_mc.\_alpha = 0;  
image\_mc.loadMovie(this.image);  
title\_field.text = this.title;  
description\_lv.text = this.description;  
};  
}  
}  
// xml object for xml content (defines sources for selections)  
var portfolio\_xml = new XML();  
portfolio\_xml.ignoreWhite = true;  
portfolio\_xml.onLoad = function(success){  
if (success) GeneratePortfolio(this);  
else trace(“Error loading XML file”); // no success? trace error (wont be seen on web)  
}  
// load  
portfolio\_xml.load(“websites.xml”);

///////////////////////////////////

this.onEnterFrame = function () {  
filesize = image\_mc.getBytesTotal();  
loaded = image\_mc.getBytesLoaded();  
preloader.\_visible = true;  
if (loaded != filesize) {  
preloader.preload\_bar.\_xscale = 100\*loaded/filesize;  
} else {  
preloader.\_visible = false;  
if (image\_mc.\_alpha\< 100) {  
image\_mc.\_alpha += 10;  
}  
}  
};
