Skip navigation
Currently Being Moderated

Help with making a background video loop

May 19, 2011 12:50 PM

Hello,

I am new to flash and am running flash CS5.5 and I would like to know how I could get a basic video clip to loop in the background.  Any help would be greatly appreciated.  Thanks

 
Replies
  • Currently Being Moderated
    May 19, 2011 5:00 PM   in reply to EverestJ

    If it is a basic flv video clip, one option is to just import/embed it into an empty movieclip's timeline and place that movieclip on a layer below any others.  That way, it can play continuously regardless of what the rest of the file's content is doing.

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2011 8:21 AM   in reply to EverestJ

    You're welcome

     
    |
    Mark as:
  • Currently Being Moderated
    May 20, 2011 12:52 PM   in reply to Ned Murphy

    I guess I am missing something because this did not work for me.

     

    I dropped the flv into a new layer and it pretty much just acted like I was importing a video from scratch. It creates a FVLplayback embeded component and plays fine, but will not loop.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 15, 2012 9:08 AM   in reply to Ned Murphy

    HI, I'm trying the same thing... imported an FLV into a movie clip and placed the movie clip in a bottom layer of the main scene.

     

    I had imported it before as "load as external video with playback component" which played fine, but it didn't loop.

     

    Now I'm trying the "Embed FLV and play in timeline" method into the movie clip and I stuck the movie in a layer in the main timeline.

     

    The problem is that it's not playing at all now. I've added the 700 frames to the length of the video in the main timeline, and that's not helping. I've tried adding a gotoAndPlay(1); on the last frame. Not helping.

     

    Any thoughts?

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

    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:

More Like This

  • Retrieving data ...

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