Skip navigation
jana_st
Currently Being Moderated

How do I make a video to loop endlesly?

Feb 8, 2008 12:46 PM

Hello everyone,

I have a little video that is supposed to be an endless loop.
I embeded it into a web site as a swf, it streams and than stops at the end.
I just read there is a action script to make it loop.
Anyone can help?
I'm new to this, so please take it easy on me.

Thanks
Jana
 
Replies
  • Currently Being Moderated
    Feb 8, 2008 1:30 PM   in reply to jana_st
    is this a swf file? or and FLV file being played using the FLVPlayback Component?

    an swf file 'loop' by default unless you add a 'stop()' action to it. But you mention 'streaming' so that would lead me to believe you're using a Playback Component, in that case you can use a Listener and the 'complete' handler for the FLV Component.
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2008 3:01 PM   in reply to jana_st
    ok, so you have a FLV file. but it's embedded on the timeline, right? try making a new document (same size) open the Components panel, drag an instance of the FLVPlayback component onto the stage, place it at 0,0 and in the properties panel give in the instance name 'myFLV'. then in the parameters panel, (with the component selected) enter the FLV file name (or path to the file if not in the same directory) in the 'contentPath' parameter, change the 'skin' parameter to 'none', make sure autoPlay, and autoRewind are set to true.

    then create a new layer named actions, and on the first frame, type the following:
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2008 5:36 PM   in reply to jana_st
    you're welcome :)
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 25, 2009 4:43 AM   in reply to clbeech

    clbeech wrote:

     

    is this a swf file? or and FLV file being played using the FLVPlayback Component?

    an swf file 'loop' by default unless you add a 'stop()' action to it. But you mention 'streaming' so that would lead me to believe you're using a Playback Component, in that case you can use a Listener and the 'complete' handler for the FLV Component.

    I am also trying to get my swf to loop.

     

    Yes I am using the option to Load External Video with playback component but with playback component set to none.  I don't know much Action Script but am learning as I appreciate how powerful it is.

     

    Would you or anyone be kind enough to show me the code?  I got this code (which I am grateful for but can't now find the post) from an older post but can't get it to work - reports error 1046 in line 2

     

    myVideo.addEventListener(VideoEvent.COMPLETE,doLoop);

    function doLoop(evt:VideoEvent):void {

    evt.currentTarget.play();

     

    and should the action be added to the same frame as the video or another layer?

     

    Grateful thanks to anyone who can help me out as I have spent ages trying to find the answer myself.

    Angela

     
    |
    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