Looping an FLV
A common question regarding Flash Video is : "How do I loop a video?".
Here's the code:
ns.onStatus = function(info) {
if (info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
};
Enjoy!
Here's the code:
ns.onStatus = function(info) {
if (info.code == "NetStream.Play.Stop") {
ns.seek(0);
}
};
Enjoy!


12 Comments:
Your code is nice. Thanks for that.
Thank you very much!
I was looking for this whole after noon.
great! now where do i paste the code?
Lee you paste the code aft5er the ns.play() function.
Thanks for the code, but I am a total idiot when it comes to flash, it is all very new to me. I use Flash MX2004 and I upload FLV to photobucket and then a create a flash swf media display using the flv url to play in it. I do this so I can upload the small file size swf file to a gaming website profile that only allows 600kb upload. Doing it this way allows me to play a 5 to 10 minute or more if I wish video on my profile. So with all that said where do I put that code to make my flv video loop in my swf file?
Thank you, but I'm with Lee. I have a simple Flash movie: a stage with a progressive-download flv in the middle and I want it to loop. Can you give me simple directions on how to do that? Thanks, you're a pro. :)
Jon are you using Flash CS3?scoop1752
Hi all...
How about this:
import video
Select the video component on stage
Open the actions panel
add the following code:
on (complete) {
this.autoRewind = true;
this.play();
}
Hi all..
How about this:
Import video
Select the video component on stage
Open the actions panel
Put the following code:
on (complete) {
this.autoRewind = true;
this.play();
}
on (complete) {
this.autoRewind = true;
this.play();
}
maby i'm stupid but it took me an hour to find out i can only apply scripts to FLVs in actionscript 2.0 not 3.0, however, this worked :P
on (complete) {
this.autoRewind = true;
this.play();
}
works for me... thanks!
2 hours I have spent looking for this loop fix - thank you
Post a Comment
<< Home