Hello all,

I have a question abou cue points. I have a script, see below. In that script I define some cue points. Now I want to define a action for each cue point seperate.

The script:

// Requires an FLVPlayback instance called my_FLVPlybk on Stage
import fl.video.*;
import fl.video.MetadataEvent;
my_FLVPlybk.source = "1.flv"
var cuePt:Object = new Object(); //create cue point object
cuePt.time = 2.02;
cuePt.name = "ASpt1";
cuePt.type = "actionscript";
my_FLVPlybk.addASCuePoint(cuePt);//add AS cue point
// add 2nd AS cue point using time and name parameters
my_FLVPlybk.addASCuePoint(5, "ASpt2");

my_FLVPlybk.addEventListener(MetadataEvent.CUE_POI NT, cp_listener);
function cp_listener(eventObject:MetadataEvent):void {

var request:URLRequest = new URLRequest("dummy.swf");
var loader:Loader = new Loader()

new URLLoader()
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);

I manage to load a dummy movie at the cuepoint, but that is for all cuepoints. I want to set dummy.swf for ASpt1 and something.swf for ASpt2 and so on.

Can someone help me?