Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:27:57+00:00 2026-06-16T01:27:57+00:00

I found this script which seems to do what I need, however, when I

  • 0

I found this script which seems to do what I need, however, when I try to export a file I get the “filename: false” as output. Any idea?

http://cookbooks.adobe.com/post_Extract_bitmaps_and_audio_from_a_FLA_file-18144.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:27:59+00:00Added an answer on June 16, 2026 at 1:27 am

    Took me a bit but I figured out your problem. The issue is with this little property of your sound file: soundItem.originalCompressionType. You can find some detail for the issue here. What is happening in your code is that it will try to export the sound file as the type that it is stored as in the library. i.e. filename.mp3 saves as a .mp3 file and filename.wav saves as a .wav file. If the soundItem.originalCompressionType is equal to “RAW” you cannot save the sound file as a .mp3 file, thus the “filename: false” output. You must save the file as a .wav file. I modified the code a tiny bit when defining the imageFileURL to do this.

    // Result of attempts to export will go to the output panel,
    // so clear that first fl.outputPanel.clear();
    
    // If bitmaps/audio in the library have been selected, export only
    // those. Otherwise, export all bitmaps/audio in the library.
    
    var lib;
    if (fl.getDocumentDOM().library.getSelectedItems().length > 0) {
        lib = fl.getDocumentDOM().library.getSelectedItems(); 
    } else { lib = fl.getDocumentDOM().library.items; } 
    
    // Get destination directory for files 
    var imageFileURLBase = fl.browseForFolderURL("Select a folder."); 
    var imageFileURL; 
    
    var totalItems = lib.length;
    // Iterate through items and save bitmaps and 
    // audio files to the selected directory.
    for (var i = 0; i < totalItems; i++) 
    {
        var libItem = lib[i];
        if (libItem.itemType == "bitmap" || libItem.itemType == "sound") 
        {
            // Check the audio files original Compression Type if "RAW" export only as a .wav file
            // Any other compression type then export as the libItem's name defines.
            if(libItem.itemType == "sound" && libItem.originalCompressionType == "RAW")
            {
                wavName = libItem.name.split('.')[0]+'.wav';
                imageFileURL = imageFileURLBase + "/" + wavName;
            } else {
                imageFileURL = imageFileURLBase + "/" + libItem.name;
            }
            var success = libItem.exportToFile(imageFileURL);
            fl.trace(imageFileURL + ": " + success);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this random page script which is in PHP file. I'm a bit
I have found and customized this JQuery script, which displays different content when different
I found this script that gives you the username in Windows, but I get
I found this script attached to a modified index page. This looks like some
I found this script: <script language=Javascript TYPE=text/javascript> var container = document.getElementById('dl'); var seconds =
Hi i'm building a webapp. To remove the onclick delay i found this script
I've found this login script and I'm trying to implement it into my website
I found this RGB to HSL script over at http://www.mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript . I can't find
I wanted to use groovy for a little ftp script and found this post
I'm a PHP novice, and I recently found this database-free pagination script on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.