addChild removeChild question

All I am trying to do is remove a mute button from the stage that was created via addChild. For a flash flv player. After the cue point is reached, a replay button appears - at the same time removing the mute button.

Note: the addChild method for adding the mute button works just fine, but removing it throws: “Type Coercion failed: cannot convert MuteButton$ to flash.display.DisplayObject.”

code:

function addButton(object) {
        addChild(new object());
}

function removeButton(object) {
        removeChild(object);
}

mMatt.addEventListener(
  MetadataEvent.CUE_POINT,
  function(evt:MetadataEvent):void {
    
    if (evt.info.name == "test") {
        mMatt.seek(0);
        addButton(replay);
        removeButton(MuteButton);
    }
    
  }
);

addButton(MuteButton);

Any help is much appreciated.