Home > Articles

  • Print
  • + Share This
This chapter is from the book

Shared Library Items

The whole idea of items stored in your Library is that they're only stored once regardless of how many times they're used in a movie. However, an item in one movie's Library isn't automatically recycled if you copy it into another movie. Flash has two (confusingly similar) features to let you share Library items among your movies. There are two ways to do it: runtime sharing and authortime sharing. Runtime sharing involves storing Library items in a single source movie (that gets exported as a .swf). Then, one or more user movies can access the source .swf's items. This way if the source .swf ever gets updated the changes will be reflected in all user files. This is just like making an edit to a master symbol except this time multiple movies will reflect the change instead of just multiple instances within one movie.

Authortime sharing is slightly less complex. You still have one source movie containing Library items. But with authortime sharing, the shared items get recopied into each user file every time you do a test movie. That is, the user files copy the Shared Library item at the time of export. So, if a change occurs in the source item, all user files have to be reopened and exported to reflect the change. Plus, each copy of the source adds to the file size of the user files. It's true that authortime sharing is not as modular—but it's appropriate for larger common elements that you want copied into each user file. One limit of runtime sharing is that the entire Shared Library has to fully download before a user file can begin playing. In this way, runtime sharing isn't good for many or large items.

You're about to learn the steps to create and use shared items in the runtime mode. In Hour 22, "Working on Large Projects and in Team Environments," you'll walk through a task involving authortime sharing.

How to Share Library Items at Runtime

Sharing items at runtime involves two basic steps. First, you need to create the Library containing items to be shared. Then, in each file that will use the shared items, you need to establish a link to the source.

  • + Share This
  • 🔖 Save To Your Account