# External swf pause and play

**URL:** https://forum.kirupa.com/t/external-swf-pause-and-play/300688
**Category:** Uncategorized
**Created:** [November 25, 2009, 3:53pm UTC](https://forum.kirupa.com/t/external-swf-pause-and-play/300688 "2009-11-25T15:53:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![codezpecg](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@codezpecg](https://forum.kirupa.com/u/codezpecg)
#### Post date: [November 25, 2009, 3:53pm UTC](https://forum.kirupa.com/t/external-swf-pause-and-play/300688/1 "2009-11-25T15:53:00Z")

</div>

So I have a main.swf that is made of of many loaded swf, when I play it and click pause sounds and animation stops. when I press play again animation starts but sound doesn’t. No idea why.

Sounds are loaded in timeline on external swf.

here is my play code:

stop();  
\_root.play();  
if (screen=1){  
\_root.movie01.play();  
}  
if (screen=2){  
\_root.movie02.play();  
}  
if (screen=3){  
\_root.movie03.play();  
}  
if (screen=4){  
\_root.movie04.play();  
}  
if (screen=5){  
\_root.movie05.play();  
}  
if (screen=6){  
\_root.movie06.play();  
}  
if (screen=7){  
\_root.movie07.play();  
}  
if (screen=8){  
\_root.movie08.play();  
}  
if (screen=9){  
\_root.movie09.play();  
}  
if (screen=10){  
\_root.movie10.play();  
}  
if (screen=11){  
\_root.movie11.play();  
}  
if (screen=12){  
\_root.movie12.play();  
\_root.movie12.demomovie12.play();  
}  
if (screen=13){  
\_root.movie13.play();  
\_root.movie13.demomovie13.play();   
}  
if (screen=14){  
\_root.movie14.play();  
\_root.movie14.demomovie14.play();   
}  
if (screen=15){  
\_root.movie15.play();  
\_root.movie15.demomovie15.play();   
}  
if (screen=16){  
\_root.movie16.play();  
\_root.movie16.demomovie16.play();   
}  
if (screen=17){  
\_root.movie17.play();  
\_root.movie17.demomovie17.play();   
}  
if (screen=18){  
\_root.movie18.play();  
\_root.movie18.demomovie18.play();   
}  
if (screen=19){  
\_root.movie19.play();  
}  
if (screen=20){  
\_root.movie20.play();  
}

here is stop code:

stop();  
\_root.stop();  
stopAllSounds();  
if (screen=1){  
\_root.movie01.stop();  
}  
if (screen=2){  
\_root.movie02.stop();  
}  
if (screen=3){  
\_root.movie03.stop();  
}  
if (screen=4){  
\_root.movie04.stop();  
}  
if (screen=5){  
\_root.movie05.stop();  
}  
if (screen=6){  
\_root.movie06.stop();  
}  
if (screen=7){  
\_root.movie07.stop();  
}  
if (screen=8){  
\_root.movie08.stop();  
}  
if (screen=9){  
\_root.movie09.stop();  
}  
if (screen=10){  
\_root.movie10.stop();  
}  
if (screen=11){  
\_root.movie11.stop();  
}  
if (screen=12){  
\_root.movie12.stop();  
\_root.movie12.demomovie12.enabled = false;  
\_root.movie12.demomovie12.stop();  
}  
if (screen=13){  
\_root.movie13.stop();  
\_root.movie13.demomovie13.stop();   
}  
if (screen=14){  
\_root.movie14.stop();  
\_root.movie14.demomovie14.stop();   
}  
if (screen=15){  
\_root.movie15.stop();  
\_root.movie15.demomovie15.stop();   
}  
if (screen=16){  
\_root.movie16.stop();  
\_root.movie16.demomovie16.stop();   
}  
if (screen=17){  
\_root.movie17.stop();  
\_root.movie17.demomovie17.stop();   
}  
if (screen=18){  
\_root.movie18.stop();  
\_root.movie18.demomovie18.stop();   
}  
if (screen=19){  
\_root.movie19.stop();  
}  
if (screen=20){  
\_root.movie20.stop();  
}

Thanks,

Codez

P.s.

my first post 🙂
