Remove a movieclip that has audio

I’m trying to use removeChild() to get rid of a movie clip, thus:


addEventListener(Event.ENTER_FRAME, endSlide003);
function endSlide003(event:Event):void {
 if (s003.s003Finished == true) {
  if (s003Added) {
   if (s003) {
    if (s003.parent != null) {
     removeChild(s003);
     s003Added = false;
    }
   }
  }
 }
}

but I’m getting…


TypeError: Error #1009: Cannot access a property or method of a null object reference.
 at S003/s003Listener()

I don’t understand what this error refers to. The movie clip is playing audio – s003Listener is a function that calls other functions that start the audio – and I wonder if that’s the problem. Do I need to somehow close my audio or delete it or something?