A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11303 Flash Movies | 7 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Nitin Tikhe
» Title: Cart
» Description: This Animation Tut is a fun and useful for kids below 15 years. Watch the Flag, Doors, Stick and Horse movements.
» More by Nitin Tikhe


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Banana Swimwear
» Description: This is a banana swim wear interactive catalog we designed and animated in Flash


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

» Make flash video player for broadcasting live streaming video / TV on website
» How to convert the project file of Flash Demo Builder 2.0 into FLV file
» FLV to PSP for Mac - How to convert YouTube video to PSP on mac
» How to Convert FLV to MP4 for Playback on iPod
» how to download and convert youtube video to AVI with Leawo Free FLV converter
» Flash Multi-player Game Tutorial - TicTacToe
» How to make Flash elearning tutorials with screen recorder?
» Fader API:Slideshow with MovieClips on stage
» How to convert MS PPT file into an FLV File
» Unknown Tag: Title10
Random Tutorial | Add Site

Network Design Manager
The Computer Merchant, Ltd
US-VA-Hampton

Justtechjobs.com Post A Job | Post A Resume


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.53 Votes: 104
Hits: 6237
» 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