Changing flv file with action script

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?