Groups | Blog | Home
all groups > flash actionscript > july 2004 >

flash actionscript : Controlling Sound (avi's mpegs)


IwannaFlashU
7/16/2004 9:58:50 PM
I am trying to make a video player in flash and am almost done.

The last thing I need to do is add a mute button and a volume control. The
problem is, all of the commands that I have found, deal with controlling sound
objects. I am trying to mute/unmute and vary the volume of the audio track on
an avi or mpeg movie that is being run by my player.

I am aware of the stop all sounds command but that would only take care of
muting. If I used this for muting, how could I then turn the sound back on? But
even if that worked, it would still not resolve my volume control issues.

Any help would be greatly appreciated.
IwannaFlashU
7/17/2004 5:24:34 PM
IwannaFlashU
7/18/2004 1:15:37 AM
i found it in the help section. Can't believe no one here knew this:

"If you do not specify a target when you create a new Sound object, you can
use the methods to control sound for the whole movie. You must use the
constructor new Sound to create an instance of the Sound object before calling
the methods of the Sound object."
marco_polo
11/19/2004 6:36:10 PM
Rothrock
11/19/2004 6:51:01 PM
So for two days you scolded people for not looking up the answer for you in the
help files? But anyway...I was unaware that you could play an avi or mpeg in
Flash. Is this an embedded thing or are you streaming it using the netstream
class? I think netstream has several well documented methods for controlling
the volume.
AddThis Social Bookmark Button