How do I keep loaded content from muting my SWF?

When you load an external SWF, Flash gives you some control over what the loaded content can and can’t do.

I’d like to know how to prevent loaded content from setting SoundMixer.soundtransform. My main code is responsible for controlling audio, and I don’t want loaded SWFs to mess with the global volume and pan. Any ideas?

why not just edit the external swf to remove the functions controlling the sound

My project loads in untrusted SWFS, presumably from other people. Good question. :slight_smile:

**UPDATE: **For now, I’m going to regularly check the properties of SoundMixer.soundTransform, to see whether their values are what they should be. I think this is just a temporary fix; SoundMixer.stopAll() is limited to the security sandbox it belongs to, and I believe Flash should limit the jurisdiction of SoundMixer.soundTransform as well.