# Controlling Sound in loaded SWF's

**URL:** https://forum.kirupa.com/t/controlling-sound-in-loaded-swfs/108506
**Category:** Uncategorized
**Created:** [April 26, 2004, 9:42am UTC](https://forum.kirupa.com/t/controlling-sound-in-loaded-swfs/108506 "2004-04-26T09:42:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mhunki](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mhunki](https://forum.kirupa.com/u/mhunki)
#### Post date: [April 26, 2004, 9:42am UTC](https://forum.kirupa.com/t/controlling-sound-in-loaded-swfs/108506/1 "2004-04-26T09:42:28Z")

</div>

I have a button on my main scene which creates the varaiable “soundoff”, then if one of the placed swf’s when loaded detect the variable it stops all sounds,

if(soundoff == true){  
stopAllSounds();

This works fine but does not target sounds placed in movieclips in the loaded swf’s timeline. I’ve tried targeting them with the \_root. command and using linkage but I can only stop the sound in the main timeline level.

Any ideas as usual will be greatly appreciated.

Mhunki
