Copy link to clipboard
Copied
Hi everyone !
I have a .fla file that contains a lot of sound files in the library, and I would like to export them and use them in after effect.
I can't export them one by one because there are over 500+ sounds (the file is over 550 mb).
I tried to change the extension of the file to .rar and extract it with winrar, but I get an empty folder called "LIBRARY" (with only the sub-folders and nothing else).
Is there a way to get those sounds ? Thank you.
If MP3 was acceptable the fastest solution would be to convert the FLA to HTML5 Canvas, and do a publish. You would get all of the sounds that were either used in the timeline somewhere, or had a linkage set in the library.
For extracting perfect quality WAV, I'm not sure if renaming the DAT files will do it. You could export to video, and end up with a long recording of all the sounds used in the timeline. But that would be tedious.
Copy link to clipboard
Copied
Hi.
Save your file as a .XFL, go to the generated folder > LIBRARY and get your sound files there.
I hope it helps.
Regards,
JC
Copy link to clipboard
Copied
Didn't work, I got an empty folder just like with the Winrar technique.
Copy link to clipboard
Copied
That's odd. I've tested with AS3 and HTML5 (Canvas) documents and the sounds were in that folder.
Can you share your file with just one or two sounds so we can investigate?
Copy link to clipboard
Copied
I left two sound files : File sharing and storage made simple
You may need to lower down the volume a bit.
Copy link to clipboard
Copied
Thank you!
I think it has something to do with having the sounds stored in the root or subfolders of the Library panel.
I tested with a sound stored in the root level of the Library panel and when I save the FLA as XFL the sound is exported to the LIBRARY folder as expected.
But when I store the song in a subfolder inside of the Library panel (e.g. 'sounds'), and save the FLA to XFL, the song is not exported to the LIBRARY folder.
Other interesting thing: if you go to the bin folder and change the DAT files to a valid audio extension (like MP3), they work... In my tests. But not with your files...
Maannn...
I'll see if there's a way to automate this using JSFL.
In the meantime, I hope someone else can give us an explanation.
Regards,
JC
Copy link to clipboard
Copied
If MP3 was acceptable the fastest solution would be to convert the FLA to HTML5 Canvas, and do a publish. You would get all of the sounds that were either used in the timeline somewhere, or had a linkage set in the library.
For extracting perfect quality WAV, I'm not sure if renaming the DAT files will do it. You could export to video, and end up with a long recording of all the sounds used in the timeline. But that would be tedious.
Copy link to clipboard
Copied
Nice one, Colin!
The user would still have to do some manual work, but it would do the job.
Alternatively, here is a script that will export selected Library sounds to files.
https://github.com/joao-cesar/adobe/tree/master/animate%20cc/jsfl/export_library_sounds
As usual, I invite anyone to fix it or improve it in any way needed.
Code for reference only:
Usage:
1 - Save the script in a file with a .jsfl extension;
2 - Open up your FLA;
3 - Select the library sounds you want to export;
4 - To run the script, do one of the following:
- Double-click it (the .jsfl file);
- Drag and drop the .jsfl file over the Animate IDE
- Go to Commands > Run Command....
Regards,
JC
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi.
1 - Download the .jsfl file from the link or just save the script in a file with a .jsfl extension;
2 - Open up your FLA;
3 - Select the library sounds you want to export;
4 - To run the script, do one of the following:
- Double-click it (the .jsfl file);
- Drag and drop the .jsfl file over the Animate IDE
- Go to Commands > Run Command....
I hope this helps.
Regards,
JC
Copy link to clipboard
Copied
Thanks for the quick response! 🙂
I've tried this, but either only a couple of sounds export, or no sounds export at all.
Copy link to clipboard
Copied
Wow! There were some huge silly mistakes on that script. It's been a while since I wrote that. As no one never mentioned, it remained wrong all this time.
Basically I was referencing the array of selected items as if it were the array items themselves! Shame on me.
I fixed it along with some minor improvements.
I hope now it helps!
Regards,
JC
Copy link to clipboard
Copied
Okey-dokey, cheers for looking into this! 😄
Could you provide a download for the new script file please? 🙂
Copy link to clipboard
Copied
It worked for me! Saved my day. 🙂
Copy link to clipboard
Copied
Awesome!
Copy link to clipboard
Copied
Sure. I've just updated my comment above with the link.
Regards,
JC
Copy link to clipboard
Copied
How do I download it from GitHub? I don't see a download link anywhere...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks! I'll give that a try, and see if your new file works. 🙂
Copy link to clipboard
Copied
Unfortunately, it still seems to not work. I've tried both double-clicking the file and drag-dropping it onto Adobe Animate, and no luck. After selecting a destination, nothing appears to happen.
I thought "Maybe my desired location is situated with a location path too long/in too many sub-folders deep for the script to handle", so I tried a different location in a test folder in my Music library, but that also didn't work. I'm using Windows 7 64-bit.
Any ideas?