# Mute sound after loading swf

**URL:** <https://forum.kirupa.com/t/mute-sound-after-loading-swf/248053>\
**Category:** Uncategorized\
**Created:** [January 3, 2008, 10:13am UTC](https://forum.kirupa.com/t/mute-sound-after-loading-swf/248053 "2008-01-03T10:13:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bd1234](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@bd1234](https://forum.kirupa.com/u/bd1234)\
**Post date:** [January 3, 2008, 10:13am UTC](https://forum.kirupa.com/t/mute-sound-after-loading-swf/248053/1 "2008-01-03T10:13:24Z")

</div>

how can I mute sound after loading swf using Loader object?

I tried to use the following code after Loader dispatch complete event:

(loader.content as Sprite).soundTransform = new SoundTransform(0);

but it still play the sound in the first frame of my swf file before the sound is mute.

the code works if I move the start of my sound wave to second frame in my swf, but I need to play at the first frame.

Please help, thanx.
