I have an array that looks like this:
100_0061.JPG,100_0064.JPG,100_0068.JPG,100_0069.JP G,test.swf,test.fla

and the code that is building it:
//jpgs to load
basePath = mdm.Application.path + "presFiles/"
var myFiles:Array = mdm.FileSystem.getFileList(basePath, "*.*");
numberOfFiles = myFiles.length

How can I remove the swf and fla files and update the length of the array.

Thanks in advance!