# Unknown XML Calling Problem

**URL:** <https://forum.kirupa.com/t/unknown-xml-calling-problem/229229>\
**Category:** flash\
**Created:** [June 15, 2007, 12:20am UTC](https://forum.kirupa.com/t/unknown-xml-calling-problem/229229 "2007-06-15T00:20:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![function4](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@function4](https://forum.kirupa.com/u/function4)\
**Post date:** [June 15, 2007, 12:20am UTC](https://forum.kirupa.com/t/unknown-xml-calling-problem/229229/1 "2007-06-15T00:20:35Z")

</div>

Hi, I’m having trouble with my web application.  
Basic rundown of the project scope: Dynamic list populated through XML. List selection opens slideshow and information. I generate one set of arrays from the original XML file and then generate duplicates of those arrays to filter the list according to type. I’m currently working on the filter.

```auto

function rePop(target){
    del();
    for (i=0; i<projects.length; i++) {
        if (projects*.attributes.type == target) {
            trace("hello")
    } else {
        trace("goodbye");
    }
    }
}

btn_btn.onPress = rePop("1");

```

it calls del; which splices the duplicate arrays, then rePop should make the new set of arrays according to its type or target.  
Now when I delete the (“1”) argument on the button code it will trace the goodbyes, BUT when its there, the button will not re-act. Could someone help me out. Please PM me if you could help over AIM or something! This List filtering has been killing me all day! I realize now I should have thrown all the XML into a dataset, but its too late to re-structure now.  
Thanks
