Search code examples
flashsharingfla

With Flash, what are the different ways I can share library symbols across different FLA document classes?


For example, let's say I have two FLA document classes and each of them needs to use the banana MovieClip from the library. I don't want to have a copy of banana in each FLA. What options do I have for sharing the banana MovieClip among the two FLA document classes?


Solution

  • Look at creating SWC files.

    An Adobe SWC file is a package of precompiled Flash symbols and ActionScript code that allows a Flash or Flex developer to distribute classes and assets, or to avoid recompiling symbols and code that will not change.

    You can export SWC files by opting to create them whenever you publish your FLA, via File > Publish Settings:

    enter image description here

    Then in your other projects you can add the SWC to your library paths via File > ActionScript Settings > Library path and use the contents as expected:

    enter image description here