# List component with links!

**URL:** https://forum.kirupa.com/t/list-component-with-links/251075
**Category:** flash
**Created:** [February 5, 2008, 6:53am UTC](https://forum.kirupa.com/t/list-component-with-links/251075 "2008-02-05T06:53:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stealthcloak](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@stealthcloak](https://forum.kirupa.com/u/stealthcloak)
#### Post date: [February 5, 2008, 6:53am UTC](https://forum.kirupa.com/t/list-component-with-links/251075/1 "2008-02-05T06:53:15Z")

</div>

I’m trying to make a list component in flash 8 have a links in them. So far I have this Actionscript in the main timeline for the component.  
I named the List component on the stage as “list”

```php

var listener:Object = new Object(); 
listener.change = function(event) { 
  trace("You selected: "+event.target.selectedItem.label); 
  getURL(event.target.selectedItem.link); 
} 
list.addEventListener("change",listener); 
list.addItem("facebookfirewall.com",{label:currentTerm,link:"http://www.facebookfirewall.com/"} );

```

[COLOR=#000000][COLOR=#007700]

But it doesn’t work for some reason. It calls a undefined url  
[/COLOR][/COLOR]

> ```
> Firefox can't find the file at /C|/DOCUME~1/COMPAQ~1/LOCALS~1/Temp/undefined.
> 
> ```

Can someone here help me to get this to work?:goatee:
