Flash
  Home arrow Flash arrow Page 2 - Adding Video and Sound
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Adding Video and Sound
By: Bill Sanders
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 31
    2004-07-12

    Table of Contents:
  • Adding Video and Sound
  • Importing and Setting Sounds
  • Setting Sound Properties
  • Adding Sounds to Movies
  • Using the Sound Class
  • Project: Experimenting with Sound
  • Using Media Components
  • Working with Media Classes
  • NetStream Controls

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Adding Video and Sound - Importing and Setting Sounds


    (Page 2 of 9 )

    You can best optimize your files if you take care of their file size settings before importing them into Flash. Flash has a limited number of sound settings, and although some of the settings are key ones, you're better off optimizing sound in your sound editor.

    Importing sound is quite easy. Select File, Import to Library from the main menu. (If you select Import to Stage, the sound will be imported to the library. You can use the Ctrl+R shortcut to import to the Stage, and it will work just like selecting a file for library import.) When you're importing multiple sound files, importing them to the library first helps to organize them. Once the files are in the library, you can then select the layer and/or keyframe where you want the sound to begin. Select the sound file you want, and the file is imported.

    If you want to use sound from an AVI file, the process is very similar, but you need an additional step to separate the sound file from the video. Use the following steps:

    1. Select File, Import to Library and select an AVI file to import. The Video Import Wizard opens.

    2. Select the Import the Entire Video option and then click the Next button. If you want to edit the video file first, select the Edit the Video option, and you can choose only the portion needed for the sound.

    3. In the Editing Encoding window, select any speed you want in the Compression Profile drop-down menu. The compression profile size at this stage is not important because you will be deleting the video portion of the file, changing the audio portion to MP3, and then setting the bit rate and sound quality in Flash.

    4. In the Advanced Settings pop-up menu, select Create New Profile. The Encoding (Advanced Settings) window opens. In the lower-left corner under Track Options, select Separate from the Audio Track drop-down menu, as shown in Figure 10.1.

    5. Once you've made all these settings, click Finish. In the Library panel, you should see two files: the video file and the audio file from the same original AVI file. A speaker icon identifies the sound file, and a video camera icon identifies the video file. Figure 10.2 shows separate audio and video files from an AVI file with the name narration.avi.

    After the import of sound from an AVI file is complete, delete the video portion from the Library panel if all you need is the sound portion. In other applications, you may need to throw out the separated sound portion and rerecord the sound or not use it at all.

    sanders

    Figure 10.1
    Separating the audio and video tracks.

    sanders

    Figure 10.2
    Sound from an AVI file in a Flash movie.

    This chapter is from Macromedia Flash MX Professional 2004, by Bill Sanders (Sams, 2004, ISBN: 0672326051). Check it out at your favorite bookstore today.

    Buy this book now.

     

    More Flash Articles
    More By Bill Sanders


       · Thanx for taking the time to write this verry useful tutorial.. you helped me so...
     

    FLASH ARTICLES

    - Critical Flash Vulnerability Heats Up the Web
    - More on Nonpersistent Client-Side Remote Sha...
    - Nonpersistent Client-Side Remote Shared Obje...
    - Using the Decorator Pattern for a Real Web S...
    - Using Concrete Decorator Classes
    - Delving More Deeply into the Decorator Patte...
    - The Decorator Pattern in Action
    - A Simple Decorator Pattern Example
    - Decorator Pattern
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT