Search code examples
flashmovieclipflash-ide

How can I export a scene or movieclip as a SWF without bringing the whole library?


I have an FLA file with numerous scenes. I need to export a single scene or alternatively a single movieclip as a SWF without exporting the entire FLA library with it in the SWF. I only want it to export with the symbols and assets used in the scene/movieclip.

I've tried many different settings and methods of exporting, but they all seem to bring the entirety of the FLA library with it. The only solution I've found so far is to copy/paste the scene's timeline into a new FLA, and export from there.

Does anyone know of a better way to do this?

Thank you.

EDIT: A bit of context may help:

I'm currently using the exported SWF file with a system called UniSWF, a Unity3D asset which converts SWF files into spritesheets and animation sequences for use in games. When I export a SWF using the right-click in library and export SWF, or the "Test Movie" method from the top menu, UniSWF produes packed textures containing assets from my entire library.


Solution

  • After numerous tests, it appears that when exporting a movieclip or a scene in Flash from the library, it will also bring every movieclip in the library with it which has the "Export for ActionScript" property checked. This seems logical, as the generated AS will have a reference to the movieclip, which brings it into the export. Unchecking this on all movieclips which should not be exported seems to have resolved the issue when exporting a single moviecip from the library.