# How do I make these Clickable/Linkable?

**URL:** https://forum.kirupa.com/t/how-do-i-make-these-clickable-linkable/268074
**Category:** flash
**Created:** [August 8, 2008, 9:50pm UTC](https://forum.kirupa.com/t/how-do-i-make-these-clickable-linkable/268074 "2008-08-08T21:50:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![johnnylovely](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@johnnylovely](https://forum.kirupa.com/u/johnnylovely)
#### Post date: [August 8, 2008, 9:50pm UTC](https://forum.kirupa.com/t/how-do-i-make-these-clickable-linkable/268074/1 "2008-08-08T21:50:47Z")

</div>

I have been working so long on this problem and I need some help. I am using browseForDirectory to open a directory, then the files in the folder that the user chooses from are shown in a list. My problem is that I don’t know how to make these items in the list clickable so I can open them back up in a browser. The highlighted part shows where the list is being populated.

Can someone please help me?

Here is the code:

import flash.filesystem._;  
import flash.events._;  
import fl.controls._;  
import flash.display._;  
import flash.text.\*;

browse\_btn.addEventListener(MouseEvent.CLICK, browseFiles)

function browseFiles(e:Event):void  
{

var file:File = new File();

file.addEventListener(Event.SELECT, dirSelected);  
file.browseForDirectory(“Choose a folder”);

[COLOR=Navy]function dirSelected(e:Event):void  
{  
info.text = file.nativePath;

```
var desktopNodes:Array = file.getDirectoryListing();
for (var i:uint = 0; i &lt; desktopNodes.length; i++) 
{

var f:File=desktopNodes* as File;
        if (f.extension=="htm"||f.extension=="html")
    {
    list.appendText("

```

" + desktopNodes\*.name);

```
    }

}

```

}[/COLOR]

}

If Someone could help me out it would be wonderful, thanks guys.
