# Seek Bar w/FLV cue points to drive presentation issue

**URL:** https://forum.kirupa.com/t/seek-bar-w-flv-cue-points-to-drive-presentation-issue/290427
**Category:** flash
**Created:** [June 14, 2009, 8:02pm UTC](https://forum.kirupa.com/t/seek-bar-w-flv-cue-points-to-drive-presentation-issue/290427 "2009-06-14T20:02:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pixelmonk](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pixelmonk](https://forum.kirupa.com/u/pixelmonk)
#### Post date: [June 14, 2009, 8:02pm UTC](https://forum.kirupa.com/t/seek-bar-w-flv-cue-points-to-drive-presentation-issue/290427/1 "2009-06-14T20:02:12Z")

</div>

I have to create a presentation that is driven by a video of a speaker which drives the updates to the slides on the screen. I’ve created a basic Flash file with frame labels for each slide, matching them up with the slide numbers as cue points in the FLV. I was trying to use Dann Carr’s Video Spearker presentation as a starting point: [[COLOR=#800080]http://www.adobe.com/devnet/flash/artic … preso.html[/COLOR]](http://www.adobe.com/devnet/flash/articles/vidtemplate_corppreso.html)

I can get the presentation to work linearly, meaning, as the video plays straight through, the code syncs up the slides as the cue points are hit. The problem is, I need to have the scrubber bar work so that if a person scrubs forward or back in time, the correct slide appears. I’m assuming it’s some sort of findPreviousCuePoint?

I don’t have the exact code here, as I work at a site with no internet access during the week (painful I know!) But here’s the snippets I was using from Dan’s code. Any help in figuring this out would be greatly appreciated. I think it’s just a simple 3 line function code bit that I need but it’s just not coming to me.

code example:

function seekToCuePoint( cueName ) : void  
{  
// Find the cue point in the FLVPlayback component, seek  
// to time  
var c = display.findCuePoint( cueName );  
display.seekSeconds( c.time );

}

function synchVideoToInterace( cueName:String ):void  
{  
// Play if needed  
if(!display.isRTMP && !display.playing ){  
display.play();  
}

// Show associated content on screens or labeled frames  
gotoAndStop( cueName );  
}

function cuePointHandler( evt:MetadataEvent ):void  
{  
// Get the cue name from the event object  
synchVideoToInterace( evt.info.name );  
}  
display.addEventListener(MetadataEvent.CUE\_POINT,cuePointHandler);
