# mp3

**URL:** https://forum.kirupa.com/t/mp3/298584
**Category:** Uncategorized
**Created:** [October 21, 2009, 1:48pm UTC](https://forum.kirupa.com/t/mp3/298584 "2009-10-21T13:48:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jonas1976](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@jonas1976](https://forum.kirupa.com/u/jonas1976)
#### Post date: [October 21, 2009, 1:48pm UTC](https://forum.kirupa.com/t/mp3/298584/1 "2009-10-21T13:48:03Z")

</div>

I have this mp3 3531Kb in my site.  
when I only place in library swf I increase considerably and being main.swf sufficiently weighed.  
I can make of another form?

i have this

[![](http://img10.imageshack.us/img10/3369/soundo.jpg)](http://img10.imageshack.us/i/soundo.jpg/)

```php
import flash.media.Sound;
import flash.media.SoundChannel;

var soundOn:Boolean=true;
var myMusic:TitleMusic = new TitleMusic();
var myChannel:SoundChannel=myMusic.play(0,1000);
var myTransform:SoundTransform;

mySoundButton.addEventListener(MouseEvent.CLICK,toggleSound);
mySoundButton.buttonMode=true;
mySoundButton.mouseChildren=false;

function toggleSound(e:MouseEvent) {
    if (soundOn) {
       
        myTransform = new SoundTransform();
        myTransform.volume=0;
        myChannel.soundTransform=myTransform;
        soundOn=false;
        mySoundButton.myButtonText.text="ON";
    } else {
      
        myTransform = new SoundTransform();
        myTransform.volume=1;
        myChannel.soundTransform=myTransform;
        soundOn=true;
        mySoundButton.myButtonText.text="OFF";
    }

}

```

thanks
