# Determining which data is being loaded

**URL:** <https://forum.kirupa.com/t/determining-which-data-is-being-loaded/310241>\
**Category:** flash\
**Created:** [June 5, 2010, 4:27am UTC](https://forum.kirupa.com/t/determining-which-data-is-being-loaded/310241 "2010-06-05T04:27:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marquizzo](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marquizzo](https://forum.kirupa.com/u/marquizzo)\
**Post date:** [June 5, 2010, 4:27am UTC](https://forum.kirupa.com/t/determining-which-data-is-being-loaded/310241/1 "2010-06-05T04:27:25Z")

</div>

Hello! I have a problem that I’ve been unable to solve for the past 3 hours.

- I have an array of ~200 buttons.
- Each button pulls individual info from a file online:  
[INDENT]  
/routes/801/  
/routes/802/  
/routes/803/  
…  
[/INDENT]
- My pseudocode looks something like this:

```auto

var myURLReq:URLRequest = new URLRequest("/routes/"+butNum);
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.addEventListener(Event.COMPLETE, infoLoaded);
myURLLoader.load(myURLReq);

function infoLoaded(ev:Event):void{
	// Parse loaded data
}

```

My problem is this: Let’s say the user clicks 5 buttons. Since data doesn’t load immediately, I can’t assume infoLoaded is being called in the same sequence in which the user clicks the buttons, but I need to know which file just loaded. Is there a property I can get from ev:Event so it’ll give me the URL I used to load myURLLoader?

Any help would be greatly appreciated!
