# Timeline Video

**URL:** <https://forum.kirupa.com/t/timeline-video/276413>\
**Category:** flash\
**Created:** [November 26, 2008, 9:37pm UTC](https://forum.kirupa.com/t/timeline-video/276413 "2008-11-26T21:37:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![well33t](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@well33t](https://forum.kirupa.com/u/well33t)\
**Post date:** [November 26, 2008, 9:37pm UTC](https://forum.kirupa.com/t/timeline-video/276413/1 "2008-11-26T21:37:59Z")

</div>

Hi,

I have a little problem to make my playbar and it would be very appreciated that someone help me to resolve it !

What i try to do is:  
Separate an flv in 5 part, (like theres a point at 2sec an other a 8sec and so on) The points will depend of the flv. Also, I’m stocking these points in a xml file.  
and then, what I want to do:  
make a timeline with 5 button seperated proportionnaly. When i cliked on a button, it seek the video to the time loaded from the xml… The only thing that i have difficulty with is the progression bar that’s suposed to speed up when the difference between 2 point is short and slow down if the difference is big.

Here’s my code:

> 

private function playingBarTimerEvent(e:TimerEvent):void {  
if (currentMovPosition \< aCuePoints.length) {  
var currentCuePointPos = mcTimeline.getChildByName(“iCuePoint”+currentMovPosition); //this is the button which i get the xml time depending the position  
var tempSeekBarWidth:Number = currentCuePointPos.x; // this is the position of the button  
var percent:Number = ns.time / aCuePoints[currentMovPosition] \* tempSeekBarWidth ;

```
mcTimeline.seeker.x = percent;
mcTimeline.playingBar.width = percent;

if (ns.time &gt;= aCuePoints[currentMovPosition]) {
 currentMovPosition++;
}

```

}  
}

thanks in advance!
