# Evt.target.data freezes

**URL:** <https://forum.kirupa.com/t/evt-target-data-freezes/291423>\
**Category:** Uncategorized\
**Created:** [June 29, 2009, 5:14pm UTC](https://forum.kirupa.com/t/evt-target-data-freezes/291423 "2009-06-29T17:14:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankyboy](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@frankyboy](https://forum.kirupa.com/u/frankyboy)\
**Post date:** [June 29, 2009, 5:14pm UTC](https://forum.kirupa.com/t/evt-target-data-freezes/291423/1 "2009-06-29T17:14:54Z")

</div>

So I have a bit of an odd error.

```auto
function xmlOnLoad(evt:Event):void
{
    backgroundArea.addChild(userArea);
    
    var xmlData:XML = new XML();
    xmlData.ignoreWhitespace = true;
    
    xmlData = XML(evt.target.data); //This line here
    userArea.addChild(userList);
        
    //for each(var userElement in evt.target.data.users.user)
    //{
        userList.addItem({label:""+evt.target.data+""});
    //}

    
}

```

The line that says xmlData = XML(evt.target.data) freezes my program. Nothing gets past that line. I have no idea what’s causing this problem…

What I mean by nothing gets past it is that anything anfter that line doesn’t get executed. I put the userArea.addChild(userList) before all over the function to determine where the problem was and it’s only after that line that my userList was no long showing up.
