After effects -> flv -> flash

hello everyone,

I have an .flv that has cue points sent to me by one of our motion designers. What I need to do here is be able to detect this cue points in actionscript so i can stop them at certain point and so on. I found something on flash help but i’m kind of confused. If someone could help me understand this whole concept. Thank you

ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]import[/COLOR] mx.[COLOR=#0000FF]video[/COLOR].*;

my_FLVPlybk.[COLOR=#000080]contentPath[/COLOR] = [COLOR=#FF0000]“http://www.helpexamples.com/flash/video/cuepoints.flv”[/COLOR]
[COLOR=#000000]var[/COLOR] rtn_obj:[COLOR=#0000FF]Object[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000FF]Object[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#808080]//create cue point object[/COLOR]
my_FLVPlybk.[COLOR=#000080]addASCuePoint[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]2[/COLOR].[COLOR=#000080]02[/COLOR], [COLOR=#FF0000]“ASpt1”[/COLOR][COLOR=#000000])[/COLOR]; [COLOR=#808080]//add AS cue point[/COLOR]
[COLOR=#000000]var[/COLOR] listenerObject:[COLOR=#0000FF]Object[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000FF]Object[/COLOR]COLOR=#000000[/COLOR];
listenerObject.[COLOR=#000080]ready[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR]:[COLOR=#0000FF]Void[/COLOR] [COLOR=#000000]{[/COLOR]
rtn_obj = my_FLVPlybk.[COLOR=#000080]findCuePoint[/COLOR]COLOR=#000000[/COLOR];
traceitCOLOR=#000000[/COLOR];
rtn_obj = my_FLVPlybk.[COLOR=#000080]findNearestCuePoint[/COLOR][COLOR=#000000]([/COLOR]rtn_obj.[COLOR=#0000FF]time[/COLOR], FLVPlayback.[COLOR=#000080]NAVIGATION[/COLOR][COLOR=#000000])[/COLOR];
traceitCOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
my_FLVPlybk.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]“ready”[/COLOR], listenerObject[COLOR=#000000])[/COLOR];
[COLOR=#000000]function[/COLOR] traceitCOLOR=#000000[/COLOR]:[COLOR=#0000FF]Void[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"Cue point name is: "[/COLOR] + cuePoint.[COLOR=#0000FF]name[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"Cue point time is: "[/COLOR] + cuePoint.[COLOR=#0000FF]time[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000FF]trace[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]"Cue point type is: "[/COLOR] + cuePoint.[COLOR=#0000FF]type[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
[/FONT]

}