Hi dear memebers
I got this code and the problem is that i want to mask the xml results but when i press the button it just mask the last entry, could someone explain me why???.
mask._alpha = 0;
miXml = new XML();
miXml.ignoreWhite = true;
miXml.load("data.xml");
miXml.onLoad = init;
spacing = 120;
function init() {
_global.numbers = miXml.firstChild.childNodes.length;
for (i=0; i<miXml.firstChild.childNodes.length; i++) {
info = miXml.firstChild.childNodes*;
clip_mc = attachMovie("blog", "b1"+i, i+1000);
mask._alpha = 100;
clip_mc._x = 80;
clip_mc._y = 80+spacing*i;
[color=SandyBrown] clip_mc.setMask("mask");[/color]
clip_mc.date.text = info.attributes.date;
clip_mc.body.text = info.attributes.body;
clip_mc.link.text = info.attributes.link;
clip_mc.onPress = function() {
getURL(this.link.text, "_blank");
};
}
}
//
[color=SandyBrown]under_btn.onPress = function() {
all();
}[/color];
function all() {
for (i=0; i<numbers; i++) {
var mc = _root["b1"+i];
mc._y += 5;
}
}
best regards
thanks in advance
david c