# Changing flv file with action script

**URL:** <https://forum.kirupa.com/t/changing-flv-file-with-action-script/226622>\
**Category:** flash\
**Created:** [May 22, 2007, 7:01pm UTC](https://forum.kirupa.com/t/changing-flv-file-with-action-script/226622 "2007-05-22T19:01:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [May 22, 2007, 7:01pm UTC](https://forum.kirupa.com/t/changing-flv-file-with-action-script/226622/1 "2007-05-22T19:01:40Z")

</div>

i´m using the MediaDisplay and MediaController components to play FLV vídeos.

Some buttons change the flv vídeos to be played on the Display.

for that I´m using:

myDisplay.contentPath = “videos/video1.flv”;

So my question is:

- how do I change the lenght of the vídeo so the buffering and playback of the MediaController are correct to each vídeo?
