A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Looping part of a FLV Movie in Flash

  1. #1

    Looping part of a FLV Movie in Flash

    Ok, this may be a video question -- but I'm hoping maybe there is a way to loop it with actionscript in Flash:

    I have a .flv movie file that I purchased from Istockphoto.com. I have placed it in my Flash CS3 file, and it works fine. However, once it plays, it loops back to the beginning, and I would prefer to loop it at the last 5 seconds of frames, so that it doesn't replay the entire video. Can this be done with Flash actionscripting.. or.. do I need to somehow do it in a video editor? Which wouldn't be ideal, as it would make a much larger file size...

    Thanks for your help!

  2. #2
    Senior Member
    Join Date
    May 2008
    If you are using NetStream, this will work. You can set to loop and play or loop and pause.
    //At end of video seeks back to 60 seconds and pauses or plays.
    ns.onStatus = function(info) {
    		if(info.code == "NetStream.Play.Stop") {
    		trace("Video complete")
    //		ns.pause();
    Best wishes,
    Eye for Video

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center