# Help with xml cue points and flv

**URL:** <https://forum.kirupa.com/t/help-with-xml-cue-points-and-flv/247322>\
**Category:** Uncategorized\
**Created:** [December 21, 2007, 5:58am UTC](https://forum.kirupa.com/t/help-with-xml-cue-points-and-flv/247322 "2007-12-21T05:58:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeydigital](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@joeydigital](https://forum.kirupa.com/u/joeydigital)\
**Post date:** [December 21, 2007, 5:58am UTC](https://forum.kirupa.com/t/help-with-xml-cue-points-and-flv/247322/1 "2007-12-21T05:58:49Z")

</div>

I created a presentation that loads flv’s and images (the images are based on cue points from an xml file)…

Everything works great, but how do I trigger the cue point if the user scrubs through the video?

this is the code that works when the flv has reached a certain position that’s equal to the xml cue point:

//this is within the same function that shows the elapsed time of the video, progress bar, etc.  
var current\_flvPosition = Math.round(ns.time);

```
for(i=0; i&lt;cuePoint_arr.length; i++){        
    if(current_flvPosition == cuePoint_time*.attributes.time){
        //trace("HIT CUE POINT = "+cuePoint_time*.attributes.time);
        var cuePointSlide = cuePoint_time*.attributes.name;
        load_cuePointSlide(cuePointSlide);
    }
}

```

…that was pretty easy to figure out, but how do I make the scrubber work with it? Any ideas would be greatly appreciated… 🙂
