# SCRUB\_FINISH findNearestCuePoint Problem

**URL:** <https://forum.kirupa.com/t/scrub-finish-findnearestcuepoint-problem/328958>\
**Category:** flash\
**Created:** [July 6, 2012, 11:23am UTC](https://forum.kirupa.com/t/scrub-finish-findnearestcuepoint-problem/328958 "2012-07-06T11:23:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nath2099](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@nath2099](https://forum.kirupa.com/u/nath2099)\
**Post date:** [July 6, 2012, 11:23am UTC](https://forum.kirupa.com/t/scrub-finish-findnearestcuepoint-problem/328958/1 "2012-07-06T11:23:04Z")

</div>

Hi,

I have the following code:

```auto

videoPlayer.addEventListener(VideoEvent.SCRUB_FINISH, scrubFinish);

function scrubFinish(e:VideoEvent) {
	var vp = e.target;
	//trace(vp.findNearestCuePoint(vp.playheadTime).name);

	trace(vp.findNearestCuePoint(vp.playheadTime));
	trace(vp.name);
	trace (vp.playheadTime);

}

```

which traces:

null  
videoPlayer  
1.672

Is this saying that it can’t find any cuePoints, or the FLVPlayback component??
