am working on a flash page and one progressive streamed flv movie clip called "vid". I am able to call the first cue point to trigger an embeded movie called "invite" but I want the flv to stop on the last frame and I am new to actionscript. Here is my code:

var listenerObject:Object = new Object();
listenerObject.cuePoint = function(cues) {
invite.gotoAndPlay(2);
}

vid.addEventListener("cuePoint",listenerObject);

Thanks in advance!