Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
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.