I am writing a little asset manager in Flash Builder 4.5, using the Flex4 SDK.
What I want to allow my users to do is be able to select a file from their hard drive. I have this very simply with:
var file:File = new File();
file.browseForOpen("Select an image");
What is missing is:
#1 - I need to be able to open the dialog box on given folder. The system sets a default folder to look in in a previous step.
#2 - I want to pass a filter to the dialog box for both file type (PNG, JPG, GIF, etc.) and a prefix (MyAsset_* or something like that). A filename would conform to this type of filter - My_Asset_*.png or MyAsset_*.gif.
I know I can set a FileFilter, but that seems to only care about extensions.
Is there a way to do this with the SDK or will it require custom code? If so, can someone point me in the right direction on how to do that?