-
Stop all sound
Hi, all. I have a script which mute the sound when I press. This is the script I use
mute_btn.addEventListener("click",muteVideo);
function muteVideo(me:MouseEvent) {
SoundMixer.stopAll();
}
But when I press it, I found the video I load from external source will stop playing.
This is the way I import my video
var my_nc:NetConnection =new NetConnection();
my_nc.connect(null);
var my_ns=new NetStream(my_nc);
my_video.attachNetStream(my_ns);
my_ns.play("overall.flv");
How come stop sound will cause the video stop playing?
-
lemon juice hurts your eyes
Stopping all sounds is different than muting, so I guess in order to stop the video sound, it has to stop the video too.
Can't you drop the volume of the Video object to 0?
Florian Vanthuyne
WAR AGAINST SOLVED THREADS
mark yours as Resolved under Thread Tools!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|