FORUMS: list search recent posts

Clickable Text in Dynamic text field

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Krista VonVett
Clickable Text in Dynamic text field
on Aug 9, 2008 at 1:31:44 am

Hello, I am a charming young lady from boston mass. I enjoy long walks on the beach and desperately need help with a problem I am currently facing.

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 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");

function dirSelected(e:Event):void
info.text = file.nativePath;

var desktopNodes:Array = file.getDirectoryListing();
for (var i:uint = 0; i < desktopNodes.length; i++)

var f:File=desktopNodes[i] as File;
if (f.extension=="htm"||f.extension=="html")
list.appendText("n" + desktopNodes[i].name);





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

Return to posts index

Christian Witt
Re: Clickable Text in Dynamic text field
on Oct 29, 2008 at 12:04:26 am

hi did you solve your problem= are you a "professional developer"? i am asking because i am not – a am graphic designer – and locking for someone, who could build me a little application with dynamic import of text | images | movies. greetings from san francisco, christian

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved