Tricky rewind button for audio player

Hi,

I’m a journalist dabbling in AS3 and I think this site is a gift from god. I’m working on a very simple audio slideshow in CS4 for a school project and can’t get the rewind button to function (I want it to return to the start of the audio clip.) The play and pause buttons work, and my code is super simple. I’ve been sweating this for about two weeks…I’m playing sound that’s located in my Flash library. The bottom is the problem area…Flash tells me it doesn’t recognize the stopSound at the bottom. What do I do?

I’m super indebted to you if you can help!

Here is the code:

import flash.media.Sound;
import flash.media.SoundChannel;
import flash.events.Event;
import flash.events.MouseEvent;

mybutton.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
back_btn.addEventListener(MouseEvent.CLICK, rewindSound);

var mySnd:CassieSound;
var sndChannel:SoundChannel;
var LastSoundTime: Number = 0;
var sndChannelPosition: Number = 0;

// create an instance for your sound
mySnd = new CassieSound();

function playSound(event:Event) {
sndChannel = mySnd.play(LastSoundTime);
}
function stopSound(event:Event) {
LastSoundTime = sndChannel.position;
sndChannel.stop();
}

function rewindSound(event:Event) {
sndChannelPosition = 0;
}
if( playing ){
sndChannel.stop();
}