Pausing Sounds | 1 2 3 | continued:

7:

In this step, we're going to add 2 buttons to the "buttons" layer.

  • As shown in Fig 9, click on the first frame of the "buttons" layer and create 2 buttons, play and pause.

  • Right-click on the "play" button, go to Actions and add the following action:


Add the following action to the "pause" button:

 


you're done! good job, now test your movie. :)

 


Conclusion:

What we did:

 

  • Created 2 layers, one for the buttons, and another for the sound object.
  • Imported our sound object to flash, placed it into a new Movie Clip we named "mymusic".
  • Dragged the Movie Clip from the library to the "Sound" layer of the main stage.
  • We added an Instance Name to our movie clip, this name was used in the Actions as a target to play and stop the movie clip.
  • Created 2 buttons, one for "play" and the other one for "pause"
  • added actions to the buttons.


A 100% precision, with minor action scripting. Hope you enjoyed this tutorial.


 

Fig 9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

   

 

 

 

 

Download *.FLA

Not clear enough? Check our forums. We will be glad to help you out.
   
Main | Tutorials | BestFlash | Goodies | Forums | Portfolio | Contact Us
   
 
AEvision Tutorials 2.1 - All rights reserved AEvision Designs 2002-2007
 
 
Icons provided by iconpacks.com