# Newbie question about List component

**URL:** <https://forum.kirupa.com/t/newbie-question-about-list-component/160940>\
**Category:** flash\
**Created:** [August 30, 2005, 8:38pm UTC](https://forum.kirupa.com/t/newbie-question-about-list-component/160940 "2005-08-30T20:38:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giansolo](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@Giansolo](https://forum.kirupa.com/u/Giansolo)\
**Post date:** [August 30, 2005, 8:38pm UTC](https://forum.kirupa.com/t/newbie-question-about-list-component/160940/1 "2005-08-30T20:38:19Z")

</div>

Hi all,  
i’m just a newbie in falsh, and i’m trying to make 2 lists and manages events for theses. In fact, i’m trying to open an URL when clicking on a list’s component.  
When i click on a component of the list, it properly opens an URL (see code) and then i can close it. But it’s getting bugged when i’m using the other list, and then returns to the first list. An URL is opening without reason.  
Same thing append when i’m using the scroll bar of the list.

here is my code for the first list :

```auto
 
listenerObject = new Object();
listenerObject.focusIn = function(eventObject)
{
var MonItem = liste_c.selectedItem;
getURL(MonItem.data, "_blank");
}
liste_c.addEventListener("focusIn", listenerObject);

```

And my code for the second list :

```auto

listenerObject2 = new Object();
listenerObject2.focusIn = function(eventObject)
{
var MonItem2 = liste_d.selectedItem;
getURL(MonItem2.data, "_blank");
}
liste_d.addEventListener("focusIn", listenerObject2)

```

I’m just getting started with events, and i’m surely wrong, so please can u help me out ?  
thanks 🙂  
Gian
