Hey guys In need of some help - would like to be able to click on a specific image and set specific URL-address. Here is my code so far;
function loadXML(loaded)
{
if (loaded) {
totalImgs = xmlData.firstChild.childNodes.length;
for(var i=0;i<totalImgs;i++) {
path = container_mc.attachMovie("cargo", "cargo"+i, i);
trace(container_mc["cargo"+i]);
path._y = pY;
pY = pY + (int(xmlData.childNodes[0].childNodes*.attributes.height));
path.date.text = xmlData.childNodes[0].childNodes*.attributes.date;
path.header.text = xmlData.childNodes[0].childNodes*.attributes.title;
path.load_imgs_mc.loadMovie(xmlData.childNodes[0].childNodes*.attributes.name);
var address = xmlData.childNodes[0].childNodes*.attributes.address;
}
container_mc.cargo1.onRelease = function () { // Would like it to be container_mc.cargo*?
SWFAddress.setValue("/2009/" + address);
}
Best Regards.