# Problem masking xml?

**URL:** <https://forum.kirupa.com/t/problem-masking-xml/126375>\
**Category:** Uncategorized\
**Created:** [October 22, 2004, 5:19pm UTC](https://forum.kirupa.com/t/problem-masking-xml/126375 "2004-10-22T17:19:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![angaturama](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@angaturama](https://forum.kirupa.com/u/angaturama)\
**Post date:** [October 22, 2004, 5:19pm UTC](https://forum.kirupa.com/t/problem-masking-xml/126375/1 "2004-10-22T17:19:02Z")

</div>

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???.

```auto
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
