|
| |||||||||
| Tags: flv file, loop |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| How to loop flv files?
Generally flv files are flash files and i dont see any option given anywhere for its loop feature. So can anyone tell me how to loop flv files? How to get a .flv file to loop or restart itself when it's done playing? Thanks for any help.
__________________ ALWAYS RIGHT - OTHER WISE I WUDNT SEY IT |
|
#2
| ||||
| ||||
| Re: How to loop flv files?
You can do something like this if you are loading external flv files and using the NetStream method accepting that you know the length of your .flv file: if(my_ns.time==90){ my_ns.seek(0); } my_ns is your NetStream. (check out the actionscript dictionary) |
|
#3
| ||||
| ||||
| Re: How to loop flv files?
Looping an FLV file requires being able to detect the end of the FLV, so this tutorial will cover both. The recommended method of detecting the end of the FLV playback is via the NetStream::onStatus event handler, by checking for NetStream.Play.Stop event. However, many people have reported that this event is not always sent (which could be due to undocumented bugs in the flv implementation on the NetStream class). For that reason, we will also need to create workaround for FLV files that does not send the NetStream.Play.Stop event. More information here. |
|
#4
| ||||
| ||||
| Re: How to loop flv files?
Hope the below code help you Code: listenerObject = new Object();
listenerObject.complete = function(eventObject){
myMedia.stop();
myMedia.play();
trace ("ready");
}
_root.myMedia.addEventListener("complete", listenerObject)
__________________ Education, Career and Job Discussions |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to loop flv files?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Watercooling: Single loop or Dual Loop | Akolekar | Hardware Peripherals | 3 | 21-10-2011 11:52 PM |
| Reboot Loop in Windows 7 Reboot loop and Safe mode doesn't work | mADiRAkSHii | Operating Systems | 4 | 25-01-2011 07:23 PM |
| For loop ignore hidden files | Juaquine | Software Development | 4 | 10-02-2010 06:13 PM |
| Which is best for iterator: For loop or while loop | Leeland | Software Development | 4 | 18-01-2010 06:03 PM |
| Differentiate between Do-While loop and While loop | REDBULL | Software Development | 3 | 26-11-2009 10:10 AM |