PDA

View Full Version : Loop flv-video.


Stuttleif
06-03-2004, 07:18 AM
Hello.

I have a question about looping a flv-video using actionscript. I have a flash-document with a combobox, a textarea and a mediadisplay-component. The components are connected through an xmlconnector. When a word is selected from the combobox, a video is played automatically and an explanation appears in the textarea.

I'm trying to add play, loop, previous and next buttons for the video. I have this code in the code frame:

this.xcOrdliste.trigger();

spill = new Object();
spill.change = function () {
_root.mdVideo.play();
}
cbOrd.addEventListener("change",spill);

and I have made a play-button from an IconButton-component and this code:

on (release) {
_root.mdVideo.play(0);
}

I want to use the IconButton component for the next and previous buttons and a checkbox for the loop button. Any suggestions on how to code it?