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 » Audio

Categories Sound Fade Out
Author: Agamemnon | Website: http://mootpoint.20m.com |

 
Page 2
«prev 1 2 3 next»

Step by Step

Note : Words in green are just names and values that you can change them with your own.
  1. Press Ctrl+R to import a sound file, open your library and right-click on it.
    Select "Linkage...", "Export this symbol", enter "Loop" in the "Identifier" box and press OK.


  2. Press Ctrl+F8 to make a new movie clip and name it fadeOutMC.


  3. Select the 100th frame of fadeOutMC and press F6 to create a keyframe.
    Double-click on it and in the Actions panel enter stop ();


  4. Return to the main timeline.
    Double-click on frame 1 and enter the following :
    myMusic = new Sound();
    myMusic.attachSound("Loop");
    myMusic.start( 0, 1000 );
    
    Meaning : We create a new sound object (myMusic), attaching our "Loop" sound and make it play 1000 times.


  5. Select frame 30 and press F6 to create a new keyframe.
    Drag fadeOutMC from the library to the stage.
    Then select frame 31 and press F6 again.
    Double-click on it and in the Actions panel enter stop (); (to prevent the movie from looping in testing mode).
    On the stage right-click on fadeOutMC (a small cross) and select "Actions".
    Enter the following :
    onClipEvent(enterFrame) {
            volumeValue = 100 -  _currentframe;
            _root.myMusic.setVolume(volumeValue);
    }
    
    What we do is :
    On the 30th frame our fadeOutMC starts playing.
    Since it's a movie clip it won't stop at the next frame, but it will play untill it reaches a stop() in its own timeline (the 100th frame).
    Then we set a variable (volumeValue) and its value is 100 minus the frame fadeOutMC currently is.
    This value decreases as fadeOutMC plays.
    Then we set the volume to our sound object to the value of our volumeValue variable.


  6. Test your movie.
    After it gets to the 30th frame the music will fade out.

«prev 1 2 3 next»

» Level Intermediate

Added: : 2001-12-20
Rating: 8.70 Votes: 154
Hits: 5229
» Author
Agamemnon lives in Greece. He is a professional musician (a Double Bass player) and a semiprofessional web author. He loves working with Flash while what hates the most is the incompatibility between browsers.
» Download
Download the files used in this tutorial.
Download (35 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