# After effects -\> flv -\> flash

**URL:** <https://forum.kirupa.com/t/after-effects-flv-flash/235756>\
**Category:** Uncategorized\
**Created:** [August 14, 2007, 2:28pm UTC](https://forum.kirupa.com/t/after-effects-flv-flash/235756 "2007-08-14T14:28:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [August 14, 2007, 2:28pm UTC](https://forum.kirupa.com/t/after-effects-flv-flash/235756/1 "2007-08-14T14:28:27Z")

</div>

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](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]

}
