title: Adobe Air - AS3 - Listing files in directory without the extension
body: <p>I'm listing files in the "applicationDirectory" and getting the names with the extension,
  For example "myVid.mp4".
  I would like to get only the filename without the extension(mp4)</p>
  
  <p>Here is my code so far</p>
  
  <pre><code>var subjDir:File = File.applicationDirectory.resolvePath("videos");
          var files:Array = subjDir.getDirectoryListing();
          var filesName:Array = new Array();
          for (var i:uint=0; i&lt;files.length;i++)
          {
              trace(files[i].name);
              trace(files[i].nativePath);
              filesName.push({label:files[i].name,fpath:files[i].nativePath});
  
          }
  </code></pre>
  
  <p>Thank's in advance!</p>