Highlighted

ActionScript 3 Air Desktop Application Browse For Local Directory Popup

New Here ,
Sep 12, 2014

Copy link to clipboard

Copied

Hello all,

I am developing a desktop Air program that will include a browse button that allows the user to click, and once the user clicks the button, I am wanting a pop-up window to appear that allows the user to browse to a writable folder/directory on his computer. Once the user selects a folder in the window, I want to grab that directory location and store it. The storing part I know how to do, but how to create this pop-up window or dialog, I do not have a clue where to start.

What's the simplest way to go about this?

Edit:

I see I can use this example from this site, but I don't know where to grab the directory the user selected: actionscript 3 - How to create "Browse for folder" dialog in Adobe FLEX? - Stack Overflow

var f : File = new File;
f
.addEventListener(Event.SELECT, onFolderSelected);
f
.browseForDirectory("Choose a directory");

TOPICS
Development

Views

619

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

ActionScript 3 Air Desktop Application Browse For Local Directory Popup

New Here ,
Sep 12, 2014

Copy link to clipboard

Copied

Hello all,

I am developing a desktop Air program that will include a browse button that allows the user to click, and once the user clicks the button, I am wanting a pop-up window to appear that allows the user to browse to a writable folder/directory on his computer. Once the user selects a folder in the window, I want to grab that directory location and store it. The storing part I know how to do, but how to create this pop-up window or dialog, I do not have a clue where to start.

What's the simplest way to go about this?

Edit:

I see I can use this example from this site, but I don't know where to grab the directory the user selected: actionscript 3 - How to create "Browse for folder" dialog in Adobe FLEX? - Stack Overflow

var f : File = new File;
f
.addEventListener(Event.SELECT, onFolderSelected);
f
.browseForDirectory("Choose a directory");

TOPICS
Development

Views

620

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 12, 2014 0

Have something to add?

Join the conversation