Hi All

Although I am not new to Flash I am fairly new to Actionscript and have a problem. The following is using AS2 but any AS3 suggestions would be helpful.

I have a piece of video in an flv with two cue points added to it ('flowerloop' and 'videoend'). I am trying to get the video to loop between these two points to form a (hopefully) seamless loop at the end of the video.

I am using the following code which i found online to loop the video but it doesnt find the 'flowerloop' cue point and keeps restarting the video.

stop();
import mx.video.*;

var listenerObject1:Object = new Object();

listenerObject1.cuePoint = function(eventObject:Object):Void {

var cuePtName = eventObject.info.name;

if (cuePtName == "videoend") {

my_FLVPlybk.seekToNavCuePoint(0.0);
my_FLVPlybk.play();
// this is the place I made the change, when the "endLoop" cuepoint fires I seek the playhead to starting point and then play

//below just verifies cuePoints

trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);

trace("Cue point name is: " + eventObject.info.name);

trace("Cue point type is: " + eventObject.info.type);

}

};

my_FLVPlybk.addEventListener("cuePoint", listenerObject1);

//added to trace state changes

var listenerObject2:Object = new Object();

listenerObject2.stateChange = function(eventObject:Object):Void {

trace(my_FLVPlybk.state);

};

my_FLVPlybk.addEventListener("stateChange", listenerObject2);



I have tried changing the
my_FLVPlybk.seekToNavCuePoint(0.0);
to
my_FLVPlybk.seekToNavCuePoint(13);
to try and make the play head go to 13secs in but that didnt work.

Can anyone help with this problem?

I have source files available (not sure if they have uploaded) pls contact me if you need them.

Thanks

Neil