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 :
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 :
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