Sound only plays when clicking on pause button


All my sounds work however, the play button only seems to play my sound when I click on the pause or stop button first!
Plus, my stop button acts like a pause button, it doesn’t start the song from the beginning once it stops.
Not sure why…
Any ideas?

var mySound:Sound = new Sound(); 
var myChannel:SoundChannel = new SoundChannel(); 
var lastPosition:Number = 0; // pause button
var soundIsPlaying:Boolean = true; //NEW BOOLEAN TO CHECK
mySound.load(new URLRequest("that_tune.mp3")); //loads external sound file
myChannel =; 
stop_but.addEventListener(MouseEvent.CLICK, onClickStop);
function onClickStop(e:MouseEvent):void{
soundIsPlaying = false; //NEW BOOLEAN TO CHECK
play_but.addEventListener(MouseEvent.CLICK, onClickPlay);
function onClickPlay(e:MouseEvent):void{
if(!soundIsPlaying){ // NEW BOOLEAN TO CHECK
myChannel =; // NEW BOOLEAN TO CHECK
soundIsPlaying = true; // NEW BOOLEAN TO CHECK
pause_but.addEventListener(MouseEvent.CLICK, onClickPause);
function onClickPause(e:MouseEvent):void{
lastPosition = myChannel.position;
soundIsPlaying = false; // NEW BOOLEAN TO CHECK
if( soundIsPlaying == true ) { 
lastPosition = myChannel.position;