BBM.net is designed to save you time and deliver the highest quality royalty-free music for your multimedia projects. Features include: over 450 Music Loop Packages from some of the best composers in the business, our music search engine to speed your selection process, alternate music versions & bonus sounds to use for rollovers or transitions, free technical support and free consulting.
Before diving into a step-by-step example, let's explore what we're
going to achieve:
We'll create a SWF movie that contains three simple movies in its library.
This file acts as a library containing the movies that we want to dynamically
load.
We'll create a main SWF file that will load in the external library
and it's symbols, then display them on-stage.
Step 1 - Creating a library movie
Open a new flash project (any stage-size will do) and perform the following steps:
Choose Insert> New Symbol. Give it the name "box" and
type "movie clip".
Draw a box (any size).
Choose Insert> New Symbol. Give it the name "circle"
and type "movie clip".
Draw a circle (any size).
Choose Insert> New Symbol. Give it the name "line"
and type "movie clip".
Draw a diagonal line (any size).
We now have three new library symbols - each are movie clips. In order for
these movie clips to be loaded (or "attached") dynamically, we need
to add linkage names to these symbols.
Note: Whilst all library symbols can be export and linked to, only
Movie-Clips can be accessed by ActionScript to dynamically load symbols. For
this reason, all dynamically loaded symbols must be Movie-Clips. If
you want to put a graphic (JPG, etc.) in your library, then put the graphic
into an empty movie-clip, and export the movie-clip.
To export your library's movie clips, open up the library panel (Window>
Library) and:
Select the box symbol in the library list, right click and choose Linkage. Choose Export this symbol and type "box" into the Identifier
field.
Select the circle symbol in the library list, right click and choose Linkage. Choose Export this symbol and type "circle" into the
Identifier field.
Select the line symbol in the library list, right click and choose Linkage. Choose Export this symbol and type "line" into the Identifier
field.
Note: It is crucial that you export symbols that
you want to use from external movies. The linkage identifiers you give
symbols are the names that these symbols are given when your work is published
to a SWF movie. The names given to symbols in the library window are for authoring
purposes only - they are not available to ActionScript
Lastly - save the movie as "library.fla" and then publish it to "library.swf".
Pressing Shift+F12 is a good shortcut to publish your flash movie.