Skip navigation
dotcomcb14
Currently Being Moderated

Loop FLV Need Help :-)

Apr 23, 2009 2:34 PM

I want to loop my FLV file in a Flash CS4 banner and write text over the file.  I did not bring the FLV file into the timeline.  Hopefully, this was correct. The problem is that my FLV file plays and stops.  I want it to loop automatically, but cannot find a solution.  Once I complete this banner I'll bring it into Dreamweaver CS4 and have the entire banner loop. Also, what do I need to do in the publish settings to have the entire banner loop. Please help :-)

 
Replies
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 23, 2009 2:48 PM   in reply to dotcomcb14

    if you're using as2 and you have an flvplayback component on stage, use the complete event to replay your flv (so it loops):

     

    lo=new Object();

    lo.compelete=function(eo:EventObject){

    flv.play(path);

    }

    flv.addEventListener("complete",lo);

     

    as for looping your banner, that's probably a  mistake if the flvplayback component is on-stage unless you coordinate the flv loops and the timeline loops.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 23, 2009 2:54 PM   in reply to dotcomcb14

    You need to set up a listener for a complete event on the  FLV. When that event is triggered, your code should seek the video back to 0 and play it again.

     

    The code varies depending on what component you're using and which version of Actionscript you're using.

     

    Here are a couple of great tutorials from David Stiller's blog:

    How to Determine the Completion of a Flash Video (FLV) File (AS2)

    How to Play Flash Video Files (FLV) Sequentially (AS2 and AS3)

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 24, 2009 2:40 PM   in reply to dotcomcb14

    flv.addEventListener(VideoEvent.COMPLETE,f);

    flv.source=whatever;

     

    function f(e:Event){

    flv.source=whatever;

    }

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 24, 2009 4:49 PM   in reply to dotcomcb14

    make sure your flvplayback instance name is flv or change the name used in the code.  and make sure "whatever" is changed to your flv file path/name.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 24, 2009 9:14 PM   in reply to dotcomcb14

    try:

     

     

    import fl.video.VideoEvent
    flv.addEventListener(VideoEvent.COMPLETE,f);
    flv.source="barsandtone.flv";  // <-  use your flv path/name

    function f(e:Event) {      flv.play(); }
     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 26, 2009 3:38 PM   in reply to dotcomcb14

    what's globemov_mc????

     

    unless that's a string variable containing the path/name to an flv file (like globemov_mc="myvideo.flv"), you have some fundamental misunderstanding of flv files.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 26, 2009 6:07 PM   in reply to dotcomcb14

    so, do you have an flv file that you're trying t0 play?  or do you have a movieclip that you're trying to play?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 26, 2009 7:41 PM   in reply to dotcomcb14
     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 27, 2009 7:27 AM   in reply to dotcomcb14

    no problem.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 1:34 PM   in reply to kglad

    That fixed my problem immediately. Thx.

     
    |
    Mark as:
  • kglad
    72,228 posts
    Jul 21, 2002
    Currently Being Moderated
    Jul 25, 2012 5:34 PM   in reply to dougolena

    you're welcome, too.

     
    |
    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