A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11336 Flash Movies | 2 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Surjit Dhami
» Title: Book
» Description: Book
» More by Surjit Dhami


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

Featured Site

» Posted in the Flash Kit Links section
» Title: All-American Rejects
» Description: Get to know this great band by exploring their "practice room".


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

» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» HTML Photo Gallery Tutorial
» Create your first flash site – PART 1
» How to Make a Flash Photo Gallery
» Unknown Tag: Title10
Random Tutorial | Add Site

Trading Customer Accounting (IL)
Next Step Systems
US-IL-Chicago

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: 6238
» 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
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs