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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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 thesoundItem.originalCompressionTypeis 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.