Не надо писать вызовы функций в теле класса. Это же не код в кадре.

Код AS3:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.geom.Rectangle;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.text.TextFormat;
/* * * * * * * * * *
* *
* @author wolsh *
* *
\* * * * * * * * * */
public class Main extends Sprite
{
[Embed(source = "../lib/pimp.png")] private var pimpImage:Class;
[Embed(source = "../lib/back.png")] private var backImage:Class;
private var _eventTextField:TextField;
private var _sound:Sound;
private var _soundChannel:SoundChannel;
private var _soundTransform:SoundTransform;
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
_eventTextField = new TextField();
addChild(_eventTextField);
_eventTextField.defaultTextFormat = new TextFormat("Arial", 18, 0xFFFFFF, true);
_eventTextField.x = 200;
_eventTextField.y = 300;
_sound = new Sound();
_sound.load(new URLRequest("Sound.mp3"));
_soundTransform = new SoundTransform(1);
_soundChannel = _sound.play(0, 0, _soundTransform);
var switcher:Switcher = new Switcher(new backImage(), new pimpImage(), new Rectangle(2, 2, 69, 0));
switcher.addEventListener(Switcher.ON, handlerSoundON);
switcher.addEventListener(Switcher.OFF, handlerSoundOFF);
switcher.setState(Switcher.ON);
this.addChild(switcher);
switcher.x = 200;
switcher.y = 200;
}
private function handlerSoundON(event:Event):void
{
_eventTextField.text = "Sound ON";
_soundTransform.volume = 1;
_soundChannel.soundTransform = _soundTransform;
}
private function handlerSoundOFF(event:Event):void
{
_eventTextField.text = "Sound OFF";
_soundTransform.volume = 0;
_soundChannel.soundTransform = _soundTransform;
}
}
}