Yes. You must stop the sound before unloading it.

clearVideo=function(){
so.stop();
// or so.pause() then so.stop()
theVideo.removeMovieClip();
vSound.removeMovieClip();
delete so;
}

Hth
Karl

Sent from losPhone

On Dec 11, 2010, at 4:56 PM, Ivan Dembicki <[email protected]> wrote:

Stop it.

Отправлено с iPhone

11.12.2010, в 19:29, natalia Vikhtinskaya <[email protected]> написал(а):

Hi
I have problem with video sound. It is AS2.
Sound starts with this code
var so:Sound;
var vSound:MovieClip;

vSound=theVideo.createEmptyMovieClip ("vSound",theVideo.getNextHighestDepth());
  vSound.attachAudio(ns);
  so=new Sound(vSound);
  so.setVolume(100);

on close button
clearVideo=function(){
  theVideo.removeMovieClip();
  vSound.removeMovieClip();
  delete so;
}

Video removed but sound still plays. What is wrong?
Thank you in advance.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to