Home  |  Free Templates (NEW)  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Link Exchange  |  Contact Us
Tutorials
Photoshop Tutorials
Flash Tutorials
3D Graphics Tutorials
Partners
Free Website Templates
Flash Templates Today
Web Sites
Free Shape
Photoshop Tutorials
Flash Tutorials
Illustrator Tutorials
HTML Tutorials
Flash Templates
Free Web Templates
Free Flash Templates
Web Templates Forum
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Free Website Templates: 123456789101112131415
Preview & Download Preview & Download Preview & Download

Welcome To NewFreeTemplates.com Flash Tutorials Area - Create a timer with setInterval

Click "Play" and then arrows to adjust sound volume:

Minimum Flash Designer version: 5.0.23.2

Download source project t1052.zip (826 kb)

  1. Launch Flash Designer and set movie dimensions 180 x 180 (or any desired).
  2. Change frame delay to "Stop".
  3. Import sound "sound1.mp3" (Movie > Import Sound)
  4. Choose "Frame" > "ActionScript" and paste the code:
    mySnd = new Sound();
    mySnd.attachSound("sound1.mp3");
    volume = 100;
    
  5. Choose "Frame" > "Insert from Gallery" and insert play, stop, up and down buttons.
  6. Choose "Movie" > "Insert Flash Designer Clip" and insert "equalizer.sfd" file. Choose "Item" > "Placement Properties" and check "ActionScript Target"
  7. Define "OnClick" action for Up arrow:
    volume = volume + 10;
    if(volume>100) volume = 100;
    mySnd.setVolume(volume);
    
  8. Define "OnClick" action for Down arrow:
    volume = volume - 10;
    if(volume<0) volume = 0;
    mySnd.setVolume(volume);
    
  9. Define "OnClick" action for Play arrow:
    mySnd.start(0,100);
    equalizer.gotoAndPlay("Frame 2");
    
  10. Define "OnClick" action for Stop button:
    mySnd.stop();
    equalizer.gotoAndPlay("Frame 1");
    

Hit F9 for preview.

Advertisements
 
Home  |  Free Templates  |  Premium Website Templates  |  Tutorials  |  Privacy Policy  |  Contact Us
All Rights Reserved 2007-2008 by NewFreeTemplates.com