Buttons don't have to look like "buttons" they can be animated clips. Create a button that has two states where at least 1 state is an animation:

state 1

state 2

  1. Open Flash by clicking on the Flash Icon on the dock:



  2. Create a new document. Make sure it is Actionscript 2



  3. Save (+SHIFT+S) document in work folder:



  4. Insert a new symbol. Make it a movie clip and name it


  5. Within the movie clip, create a two state animated button


  6. In state 1 add an Actionscript:
    stop();



  7. In state 2 add the following:
    stop();
    _root.snd.onSoundComplete=reset;
    function reset(){
        gotoAndStop(1);
    }
    



  8. Go to scene 1



  9. Drag at least 4 instances of your movie clip onto the stage and name them (use the same name with a number appended to the end—mc1,mc2,mc3...).


  10. Import into the library the same number of sounds (File>Import>Import to Library). If you want notes, you can find them here: liz_arum_classes:examples:resources:sounds:_notes
    You can also look for clips in demos_and_samples or make your own with audacity.

  11. CTRL+click on each sounds in your library and export for Actionscript. Rename your sounds so that they are only one small word.



  12. Insert a new layer



  13. Name it Actions


  14. Open the Actionscript window and paste:
    snd=new Sound();
    
    stop();
    _root.clip_name.onRelease=function(){
        snd.attachSound("sound_name");
    	
    	//ths goes to animation
    	this.gotoAndPlay(2);
    	
    	//this plays sound
    	snd.start(0,1);
    }
    
    Complete the script so that each movie clip plays a sound