This one works really fine, but… the first value is undefined…any idea…please? :crazy: :crazy:
Thanks!
var thumb_spacing = 80;
circlecenterX = Stage.width/2;
circlecenterY = Stage.height/2;
circleRadius = 250;
drawRect = function (w, h) {
this.beginFill(0x006699, 100);
this.moveTo(0, 0);
this.lineTo(0+w, 0);
this.lineTo(0+w, 0+h);
this.lineTo(0, 0+h);
this.lineTo(0, 0);
this.endFill();
}
function GeneratePortfolio(portfolio_xml){
var portfolioPictures = portfolio_xml.firstChild.childNodes;
for(var i=0; i<portfolioPictures.length; i++){
var currentPicture = portfolioPictures*;
var currentThumb_mc=mc
noclips = portfolioPictures.length;
var mc = this.createEmptyMovieClip(“mc5”+i, i);
mc._x = circlecenterX+Math.sin(2Math.PIi/noclips)circleRadius;
mc._y = circlecenterY+Math.cos(2Math.PI*i/noclips)*circleRadius;
drawRect.apply(mc, [10, 10]);
currentThumb_mc.title = currentPicture.attributes.title;
currentThumb_mc.image = currentPicture.attributes.image;
currentThumb_mc.thumb = currentPicture.attributes.thumb;
mc.onRollOver = mc.onDragOver = function(){
info_txt.text = this.title;
thumb_mc.loadMovie(this.thumb);
}
mc.onRollOut = mc.onDragOut = function(){
info_txt.text = “”;
thumb_mc.unloadMovie(this.thumb);
}
mc.onRelease = function(){
image_mc.loadMovie(this.image);
}
}
}
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success){
if (success) GeneratePortfolio(this);
else trace (“error”);
}
portfolio_xml.load(“estrellas.xml”)