Pause « Actionscript Programming « Flash Tutorials

Home
Flash Tutorials
1.Actionscript Programming
2.Animals
3.Animation
4.Colors
5.Design
6.Effects
7.Game Cartoon
8.Humans
9.Models
10.Nature
11.Operations
12.Shapes
Photoshop Tutorials
Maya Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
Flash Tutorials » Actionscript Programming » Pause 

In this toturial, you're going to learn how to pause sound objects in flash and make the sound/music resume exactly from where it was paused.

By setting your sound object to "streaming" and using a couple of simple action scripts to start and pause your sound, 100% precision. And that's what we're going to do in this tutorial. :) By using "Streaming" sound, it means we are going to spread the music over the timeline of flash. We will place the object into a movie clip and it will be played normally like any flash animation once the "play" button is pressed. Pausing the movie clip in which the object resides will also result in pausing the sound object. We can resume that by using the "play" action again.

Before we start with sound we need to make some changes. You may have noticed that our ship shoots bullets as much as the player press the space bar, that's not right as it makes the game much easier.

w__w___w.j___a__va2_s___._c__o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.