Flash Embedded Youtube Videos

Hi,

I have three videos embedded in Flash. Every time a new video is a loaded, the sound video from the old video continues to play.

I have tried using removeMovieClip(); and I have tried stopAllSounds(); I have tried ‘delete video_mc’. Nothing seems to work!

Please help.

Here is my script:

// show this video on load
showDefault();
videoBtn1.onRelease = showDefault;

function showDefault(){
    createHolder("http://www.youtube.com/v/9WsxazKKRgY&hl");
}

// Nokia video
videoBtn2.onRelease = function(){
    createHolder("http://www.youtube.com/v/LrroJTM21bs&hl");
}

// Video diary
videoBtn3.onRelease = function(){
    createHolder("http://www.youtube.com/v/v71BSTlq6bk&hl");
}

// Video holder loaded dynamically
function createHolder(videoURL:String) {
    // Create clip to hold video
    this.createEmptyMovieClip("video_mc",10000);
    // Position video
    this.video_mc._x = 25;
    this.video_mc._y = -40;
    // load videoURL into this clip
    this.video_mc.loadMovie(videoURL);
}

Many thanks!

Dan