Flash--How to stop video sound?
- Started
- Last post
- 8 Responses
- boobs
So I've got a little video playing in a video component. When I close the component window, the video disappears just fine, but the sound keeps playing!! How do I get the sound to stop too?
Why doesn't:
newVideo1.stop();
work to stop the sound?
- ArmandoEstrada0
because AS3 sucks ass. Why do i NEED to write a line to make audio stop?
- boobs0
SoundMixer.stopAll();
Seems heavy handed. If I use that, it seems to stop the sound permanently--and it stops all sound from all sources. Now if the video is reloaded, there is no sound at all, and everyone looks like a mime.
Isn't there a way to stop just the sound for just the video in question? So that when another video loads, it could have a little sound?
- thatblokemike0
sounds related to the component your using. Are you using the FLVPlayback? If so I have had issues in the past with that thing, try this...
public function killVideo() : void
{
if(_video!=null)
{
_video.stop();
_video.getVideoPlayer( _video.activeVideoPlayerIndex ).close();
_video = null;
}
}- All that to make the sound stop? Isn't there a proper way to do it directly?boobs
- CyBrain0
There isn't anything in AS3 that is proper or direct. You have to drop your mind down an endless well of abstraction and bloated code the experts call Object Oriented programming.
- airey0
_video.gotoAndFuckOff(youCunt);
- dbloc0
stopVideo();