Problems with Cue Points

Hello everyone,

I’m hoping someone can help me out with this. What I want to do, is set cue points in my flash video and have the video pause when it gets to those points until the user clicks the “Continue” button, then it will resume. When the video reaches the end, I want the “Next” button to appear.

The Play/Pause/Continue button works great. The problem I’m having is that when the eventlistener pulls up the cue points, it doesn’t distinguish between the two. I just dont’ know the proper coding for the “if cuepoint name = end”…

Here’s the code I’m working with.

Media1.volume = 100;
nxt_btn._visible = false;
Media1.setMedia(“media/Lungs-nta.flv”, “FLV”);
Media1.addCuePoint(“middle”, 2);
Media1.addCuePoint(“end”, 10);

listenerObject1 = new Object();
listenerObject1.cuePoint = function(eventObject):Void {
control_btn._visible = true;
control_btn.label = “Continue”;
nxt_btn._visible = true;
Media1.addEventListener(“cuePoint”, listenerObject1);