Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


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

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


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

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


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.61 Votes: 160
Hits: 5240
» 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