H  15  16.1  16.2  17  18  19  20  21  22  23 

Hands-On: Flash MX 2004 Working with Sound File

Exercise 16.1: Loading a Sound from a Shared Library

  1. Create a new Flash document.
  2. Click the File menu, and then click Save the file as sharedSounds.fla.
  3. Setting Linkage for the Sound File Add an audio file or several files to the document’s Library from your Common Library of Sounds called librarySounds.fla that you created in the previous exercise. None of these files have to be placed on the Stage just yet.
  4. Select an audio file in the Library.
  5. Click the Library Options button, and then click Linkage.
  6. Select the Export for Runtime Sharing check box.
  7. Enter a distinctive name for the identifier field or use the default name of the file.
  8. The Linkage Properties dialog box.

  9. Enter the name of the published document (sharedSounds.swf) into the URL field.
  10. Click OK.
  11. Repeat steps 4 through 9 until all the audio files are correctly linked.

  12. Click the File menu and then click Publish to create the Flash .swf filefor sharedSounds.
  13. You will need to upload this file to your server to be available.

Exercise 16.2: Work with the Shared Audio Library

  1. Create a new document and Save it as testSharedSounds.fla
  2. Click the File menu, point to Import, and then click Open External Library.
  3. Select the shared Library, and then click Open. The items in the external Library will be grayed out, indicating that they are shareable items.
  4. Drag the audio files from the external Library to the Library of the active document.
  5. Drag one of the imported sound files to the Stage so the sound file will play when published.
  6. When you publish this movie the audio files will be drawn from the common Library, without increasing the size of the Flash movie. Now that’s what I mean!

 

Back to Top