This content has been marked as final. Show 3 replies
I'm thinking you can file the following under "obvious", so excuse if it is...
if you only want to see the image file types you mentioned, you'd have to remove the other file types (*.swf, *.bmp) passed to the FileFilter constructor. Also, you want to pass an Array to the browse() function, so use the following in your addFiles() function:
On Windows you'll get only the file types listed in the dialog box and on a Mac you'll see all files, but only the file types listed will be selectable, the others are grayed out. Don't know what it looks like on Linux.
Just use _refAddFiles.browse([imageTypes]) and you do not need to declare the filesToFilter array - remove _refAddFiles.browse(_filefilter)
Thanks guys, I already made it. Have a nice day!