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
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
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.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.