Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Dynamic_Content

Categories Loading External Symbols During Playback
Author: Mark White | Website: http://www.entriq.com/ |

 
Page 2
«prev 1 2 3 4 5 next»

Steps

Before diving into a step-by-step example, let's explore what we're going to achieve:

  1. 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.
  2. 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:
  1. Choose Insert> New Symbol. Give it the name "box" and type "movie clip".
  2. Draw a box (any size).
  3. Choose Insert> New Symbol. Give it the name "circle" and type "movie clip".
  4. Draw a circle (any size).
  5. Choose Insert> New Symbol. Give it the name "line" and type "movie clip".
  6. 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:

  1. Select the box symbol in the library list, right click and choose Linkage.
    Choose Export this symbol and type "box" into the Identifier field.
  2. Select the circle symbol in the library list, right click and choose Linkage.
    Choose Export this symbol and type "circle" into the Identifier field.
  3. 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.

«prev 1 2 3 4 5 next»

» Level Advanced

Added: : 2001-10-29
Rating: 8.54 Votes: 105
Hits: 6247
» Author
No details avialable.
» Download
Download the files used in this tutorial.
Download (4 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments