Skip navigation
Currently Being Moderated

Is there no simple "loop video" action for FLV in Flash?

Apr 15, 2012 8:20 AM

It seems like it should be a simple snippet, a simple action... but I'm not finding it in Flash. I'm not that familiar with Flash anymore, but I have an FLV that I imported, and I put a static mask png on a top layer. It's exporting fine, but I just want the video to loop.

 

Is this not a simple request? What am I missing. I stopped working on it last night thinking I must be overlooking something obvious.

 

Am i?

 

Thanks in advance,

 

~M

 
Replies
  • Currently Being Moderated
    Apr 15, 2012 9:32 AM   in reply to mwolda333

    In case you missed the answer post in different post:

    Number of ways to do this.

    If you embed the video directly into the main timeline.... there is no need to do anything. The default for Flash is to play the last frame and then loop to the first frame.

    Another choice is to use NetStream to play the video.... much more powerful and versatile than the FLVPlayback component.

    Then to loop, it's simple:

    ns.onStatus = function(info) {

      if(info.code == "NetStream.Play.Stop") {

      trace("Video complete")

        ns.seek(0);

        ns.play();

       }

    }

    Good NetStream video tutorial here:

    www.gotoandlearn.com

    Very bottom of page.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2012 11:35 AM   in reply to mwolda333

    You are most welcome!

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Incoming Links

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points