Hi All,
I have a problem with vars being passed incorrectly from one flash to another. Here is the AS:
function GeneratePortfolio(portfolio_xml) {
var portfolioPictures = portfolio_xml.firstChild.childNodes;
number.text = "You have saved "+portfolio_xml.firstChild.childNodes.length+" of 15 saved items.";
for (var i = 0; i<portfolioPictures.length; i++) {
var currentPicture = portfolioPictures*;
currentThumb_mc = cartloader.createEmptyMovieClip(instanceName="thumbnail_mc"+i, i);
currentThumb_mc2 = currentThumb_mc.createEmptyMovieClip(instanceName="thumbnail_mc2"+i, i);
currentThumb_mc._y = i*thumb_spacing;
currentThumb_mc._xscale = 50;
currentThumb_mc._yscale = 50;
currentThumb_mc2.attachMovie(currentPicture.attributes.style, movieclip3, getDepth()+2, {bagsname:currentPicture.attributes.bagName, fillColorOne:currentPicture.attributes.one, fillColorTwo:currentPicture.attributes.two, fillColorThree:currentPicture.attributes.three, fillColorFour:currentPicture.attributes.four, fillColorFive:currentPicture.attributes.five, fillColorSix:currentPicture.attributes.six, fillColorSeven:currentPicture.attributes.seven, fillColorEight:currentPicture.attributes.eight, fillColorNine:currentPicture.attributes.nine, fillColorTen:currentPicture.attributes.ten, imagefile:currentPicture.attributes.image, imagexcoord:currentPicture.attributes.xcoord, ycoord:currentPicture.attributes.ycoord});
currentThumb_mc2.onRelease = function(){
getURL('/marty/viewer.swf?file=' + currentPicture.attributes.style + '&bagName=' + currentPicture.attributes.bagName + '&fillColorOne=' + currentPicture.attributes.one , '_blank');
}
So basically, that script above lists different bags dynamically depending on the value passed by the xml. I want to be able to have a user click on the bag, sending them to a new URL with the variables for that specific bag in the address bar. This is working, sort of. Its sending them to a new URL with variables in the address bar, but the variables are of the final node of the xml, rather than the xml node that the bag represents, if that makes any sense to you.
Anyone know how to achieve this?
Thanks,
Mat