AS3 help with stopping Vimeo Video - help please!

I am quite new to AS3, and I am finding a few things tricky.

I have imported a link to a Vimeo Video in Flash CS4 using AS3, with the following code:

stop();

btnNextProject.addEventListener(MouseEvent.CLICK, advance);
function advance(event:MouseEvent) {
gotoAndStop(“Video2”);
}

import flash.system.Security;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;

var moogaloop:Sprite = new Sprite(); // the video player
var player_width:int=364;
var player_height:int=272;
var clip_id:int = 9383301;

function startLoad():void
{
Security.allowDomain(“bitcast.vimeo.com”);
var v_loader:Loader = new Loader();
var v_request = new URLRequest(“http://bitcast.vimeo.com/vimeo/swf/moogaloop.swf?clip_id=” + clip_id + “&server=vimeo.com” + “&width=” + player_width + “&height=” + player_height + “&show_title=0&show_byline=0&show_portrait=0&color=ffffff&fullscreen=1”);
v_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
v_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
v_loader.load(v_request);
}

function onCompleteHandler(e:Event):void
{
// Position the player where you want it
moogaloop.x = 42;
moogaloop.y = 101;
moogaloop.addChild(e.currentTarget.content);

// Create the mask for moogaloop
var v_mask:Sprite = new Sprite();
with( v_mask.graphics ) {
    beginFill(0x000000, 1);
    drawRect(moogaloop.x, moogaloop.y, player_width, player_height);
    endFill();
}

addChild(v_mask);
moogaloop.mask = v_mask;

addChild(moogaloop);

}

function onProgressHandler(e:ProgressEvent):void
{
var percent:Number = e.bytesLoaded / e.bytesTotal;
trace(percent);
}

startLoad();

The code is on a frame half way into the movie, and also has a button to advance to another frame.

Right the problem is, when clicking onto the next frame, the flippin video stills keeps playing over the top of all the other content. Help, please this is driving me up the wall, any help would be great - many thanks :slight_smile: