Looping FLV stutters.

Hi All,
I'm experiencing a frustrating issue. Any help would be greatly appreciated:
I am looping a FLV (with Alpha) in a SWF. The FLV is an animation created in After Effects. In After Effects the animation was created to loop seemlessly (no jerk or stutter...a smooth repetitive cycle), however, when I loop it with the SWF, it stops for a split second at the end of its 8 second run before it starts over again. How can I make it loop smoothly without that stutter when it begins again?
I'm using Flash CS5.5. I export the flv from After effects and link that from the swf. Here's the Actionscript3 code I'm using to play and loop the flv:
import fl.video.*;
//Video component instance name
var flvControl:FLVPlayback = display;
var flvSource:String = "loopingFlv.flv";
//Loop the video when it completes
function completeHandler(e:fl.video.VideoEvent):void
flvControl.seek(0);
flvControl.play()
flvControl.addEventListener(fl.video.VideoEvent.COMPLETE, completeHandler);
//Set video
flvControl.source = flvSource;
Here is the short animation for you to see:
http://home.comcast.net/~samiri/director/mortals/froggy/loopingFlv.swf
-you can see the stutter every 8 seconds. (I'd also like it to start moving upon load...without that initial pause...but maybe that's too much to ask.)
Thanks for the help!

Kglad,
I've encountered a glitch that I believe is due to my looping code based upon your code above. Below is a stripped-down version of my movie that demonstrates the problem: The child MC with the looping code in it will vanish. This happens only intermittently (maybe every other browser reload or so after somewhere between 4 and 40 secs).
I didn’t notice the problem before because it only happens in .swf mode (when viewed thru a browser). I never see the problem in authoring mode. I’m hoping you might have some insight about how to prevent the 'vanishing MC' problem so I can use your code which does a great job of seamlessly looping my FLV animated movie clips.
Here’s the bare-bones test swf:
http://home.comcast.net/~samiri/director/mortals/froggy/index2.html
-I linked the source files from the top of that page, if you have time to test it.
What I’m doing:
I put the following code on an layer in frame 1 of a child movie clip. This movie clip has a FLVPlayback component in it called, ‘childMovieClip.’
import fl.video.*;
var index:int = 0;
childMovieClip.addEventListener(fl.video.VideoEvent.COMPLETE, completeHandler);
childMovieClip.source = "central_2.flv";
childMovieClip.play();
readyNextPlayerF();
function completeHandler(e: fl.video.VideoEvent): void
    childMovieClip.play();
    childMovieClip.visibleVideoPlayerIndex = index;
    readyNextPlayerF();
function readyNextPlayerF():void
    index++;
    output1.text = "loop index: " + index; // For troubleshooting output to stage
   childMovieClip.activeVideoPlayerIndex = index;
    childMovieClip.source = "central_2.flv"; //assign the source
Any help is greatly appreciated.
Message was edited by: paul_james123

Similar Messages

  • How to loop FLV video?

    Status:
    - I imported an AVI video clip to Flash converting it to FLV
    - I published the project
    - I put the files on my web server
    - It automatically starts playing when you go to the web page
    Question:
    How do I make the clip loop?
    I've not done much Flash and no Action Script - so the simpler the better
    Thanks for any help.
    Details:
    (that may not be necessary to help me )
    - I wrote no Action Script to do this...
    - just imported/converted the video then published from Flash and them put on web server
    - Running Flash CS3 on PC with XP
    - I did Google this and found this how-to http://www.communitymx.com/content/article.cfm?cid=984BA
    But I can't find their download sample
    And, they say click on Frame-1 and press F9 then put code snippit in after line 7
    But, I see no Action Script when I click on Frame 1 and press F9... a window opens but no code appears...just a long menu on the left.
    Thanks again for any help.

    Given your Code:
    import fl.video.VideoEvent;
    flv.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
    function videoCompleteF(e:Event){
    flv.seekSeconds(0);
    flv.play();
    When you say use "my name instead of flv in the code" do you mean use the name of my project or the name of my flv video file?
    My "project" is named zzz so I have these files...
    zzz.fla
    zzz.html
    zzz.swf
    SkinUnderAll.swf
    MyVid.flv
    AC_RunActiveContent.js
    So If I used the project name instead of flv in your code I would get...
    import zzz.video.VideoEvent;
    zzz.addEventListener(VideoEvent.COMPLETE,videoCompleteF);
    function videoCompleteF(e:Event){
    zzz.seekSeconds(0);
    zzz.play();
    Is this correct?
    Thanks again kglad !!

  • Tweening a looping FLV

    Hi All,
    It's me again. Stumped again:
    Kglad helped me make a FLV loop seamlessly and tween an FLV (converted to a movie clip) so that it zooms. Now I'm trying unsuccesfully to make both (loop and zoom) happen at the same time. It looks like the looping method below only works on a FLVPlayback component ...and the tweening method only works on a movie clip. Any recommendations?
    Here's the code in frame 1 of my timeline:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.video.*;
    //Looks like the looping code below can't make a movie clip loop. It only works with a FLV
    //in a FLVPlayback component.
    //Loop the FLV animation
    var index:int = 0;
    my_FLVPlybk.addEventListener(fl.video.VideoEvent.COMPLETE, completeHandler);
    my_FLVPlybk.source = "FroggyTop.flv";
    my_FLVPlybk.play();
    readyNextPlayerF();
    function completeHandler(e: fl.video.VideoEvent): void {
    my_FLVPlybk.play();
        my_FLVPlybk.visibleVideoPlayerIndex = index;
        readyNextPlayerF();
    function readyNextPlayerF():void{
    index++;
        my_FLVPlybk.activeVideoPlayerIndex = index;
        my_FLVPlybk.source = "FroggyTop.flv"; //assign the source
    //Zoom (enlarge) the FLV animation.
    //Needed to make the FLVPlayback component a movie clip 1st).
    var scaleXTween:Tween=new Tween(LoopingMC,"scaleX",
    None.easeNone, 1,3,5,true);
    var scaleYTween:Tween=new Tween(LoopingMC,"scaleY",
    None.easeNone, 1,3,5,true);
    //How can I do both on same object at the same time (ie; make the animation loop as it's tweening)?
    Here's the posted swf: http://home.comcast.net/~samiri/director/mortals/froggy/linkedFLV__loopAndZoom.swf
    Here's the fla source file: http://home.comcast.net/~samiri/director/mortals/froggy/linkedFLV__loopAndZoom.fla
    Thanks much.

    I thought I tried that but maybe I'm misunderstanding what you mean. Here's what I'm doing:
    -From my main timeline I select: Insert > new symbol
    -Name it "childMC"
    -drag the FLVPlayback component from the library to the stage
    -Set the Properties of the flvPlayback component so that its source is the FLV in the same folder
    -On the FLVPlayback's layer in the timeline: extend the frame to span 20 frames (click on frame 20 and hit F5)
    -select that span and rt click and choose 'create motion tween'
    -click on the flvPlayback object on the stage so the Properties window reflects the flvplayback's properties
    -select the last frame and change the x and y scale so it's bigger
    -hit the return key to preview: I see the flv grow as the playhead moves from the first frame to the last frame (looks fine)
    -now go back to the main timeline
    -create a new layer in the timeline
    -find the just-created "childMC" in the library and drop it onto the stage (and into that new layer)
    -Control > test movie
    The childMC on the main timeline stage does not change in size as it does when I preview from the tweened movie clip's timeline. The movie clip on the main timeline plays ..but just stays the same size on the stage.
    What am I doing wrong?
    Thanks

  • Repeat/Loop FLV movie that is embeded in swf

    Ive made a flash banner for my website. Inside the banner, i
    have put a video. I imported the video using flash, and now it is
    embedded in my swf file. The video is about 24 seconds long, I need
    it to repeat over and over again, forever.
    Is there any easy way I can do this? Im new to flash, and
    this is a bit urgent. Thanks for the read guys, Olá from
    Brasil!
    Site:
    http://mobixsa.com.br/

    i don't see a problem (with ff).

  • Loop a short flv before the live stream begins

    Hi,
    Using FMS 3.02 and FME 2.5 is it possible to run a looping
    flv that the clients can see, before the live stream begins, and
    when the live stream finishes, an exit flv video plays?
    cheers

    Besides, can I draw data from DataBase (say, MS SQL Server) on server side? Can server-side ActionScript do this?

  • Add an Intro FLV before live stream starts

    Hi,
    I have a console that has a main VideoDisplay that will
    broadcast a live stream.
    I'm using FME 2.5 with FMS 3.02.
    What I would like to have the ability to run a looping FLV in
    the VideoDisplay until the Live stream begins which will then cut
    in.
    I know this may be a FMS 3.02 config, but any advise would be
    appreciated...
    If it is also possible to play an Exit FLV when the live
    stream stops..that would be a bonus....
    Cheers

    Hi Macnimation,
    The tutorial is helpful only if you are using some Flash Authoring tools to write your playback client (which is playing back the video from the FMS at your side). In that case, inside your client code, there must be a NetStream object ns, and a statement like ns.play(filename, 0, -1), where filename is the name of your final video which you have created by combining the various videos you want to play.
    So to create a playlist (as described in the tutorial), you need to modify the ns.play() statement. If your video files are named A.flv, B.flv, and so on, while the short intro video is named X.flv, you can write the following sequence of statements to create  a playlist:
    ns.play("X", 0, -1, true);
    ns.play("A", 0, -1, false);
    ns.play("X", 0, -1, false);
    ns.play("B", 0, -1, false);
    The last parameter (true/false) is the reset parameter. For the first time, it is true, to indicate that reset the play and start playing stream X immediately. For the following statements, it is false, indicating that play the stream A after the previous stream (i.e. x) is completed.
    Thanks.

  • Flash videos start having messed up sound

    Hello there.
    I never shutdown my PC and thus also not my programs, including the browser. After my browser (I've tried Firefox, Chromium and Opera, all with the same result) has been running for a while (1-3 days) flash videos will playback with messed up sound. By that I mean that the sound will stutter heavily and loop that stuttering second over and over. I then just shutdown the browser, start it up again and watch the video again. Then it takes a day or so and the same stuff happens. It's not a mindboggling hassle to restart my browser every other day, but I've had this problem for *ages* now (maybe a year or something like that) and I'd really like to know if there's a way to fix it.
    Last edited by kelnoky (2011-03-31 22:06:45)

    I think that happens when flash crashes. It happens to me if I use it a lot for a prolonged period of time - like whole day watching movies / listening to music via flash-based players.
    The sound stutters just like in your case and it goes away after I restart the browser.
    As long as it involves flash, you will suffer as I don't know any way of permanently fixing it. You can move to html5-based media or download the videos and watch them from your hard drive.

  • Stuttering flv playback issue- need help asap

    We need help asap. Have a project is due to deliver today (5/14).
    We have a video to go on a dvd-rom, live action with Motion Graphics behind.
    When output is done thru Projector the Motion Graphics stutter as they scroll.
    Here is more technical info:
    Stuttering flv playback issue:
    Prores 422 timeline 29.97fps 1280x720 output from fcp using current settings.
    Mov file is approx 7gb, plays relatively smooth on a mac pro with no raid.
    Frame by frame analysis shows all frames are present with no jumps tears or skips.
    Tried several output paths, programs and settings to create a smooth flv file to no avail.
    We adjusted data rates from 2k, 3.5k, 4k and 8k, no luck
    We adjusted keyframe rates from low to all frames, no luck.
    We tried cs3 flash encoder, cs5 media encoder, squeeze ect, same results.
    Playback in the flash projector seems to choke slightly no matter what we do.
    Have also posted in the Director Forum.
    Any help much appreciated!

    Here are a few ideas off the top of my head:
    Try playing the file using a different xtra, sometimes different ones will work better.  If you have Director 11.5, there is a native flv playback xtra.
    You can build a player easily in Flash using the flvPlayback component, then bring that into Director as a swf.
    Once you have the video in Director, try making the member Direct To Stage (DTS).  If it is already DTS, try making it not DTS.
    Make sure the video is not transparent, and nothing in Director overlaps the video... in fact, when the video is playing, nothing should be moving at all, and try to keep the amount of code that is running to a minimum.
    Try lowering your video's data rate further or try using a different codec.
    Using VBR (Variable Bit Rate) compression often makes the video appear to play smoother.
    Try compressing the flv with different software.  FFMpeg, for example, is free and does a very good job, often better than the Flash Video Encoder that comes with Flash/Creative Suite.

  • How to set a loop on an .flv so that an exported .swf loops?

    hi there. i am using Flash CS4 and I would like to know how to set a loop in an flv file so that when it is exported to swf, the movie will loop. Basically i have taken an existing interactive flash movie and have decompiled it into its individual flv counterparts. what i intend to do is take out all the nonsense from each flv file and then reconstruct the flash movie, export each file to swf and then convert each swf to avi or some other video format. to do this i will be using sothink swf to avi converter which allows you to convert swf files to avi files. this program allows you to convert swf files that loop by looping the swf file for as long as you want until you stop it, in which a video file is created from "the recording"
    after i decompiled the original file, many of the existing flv files were already set to loop. i know this because when exported to swf the swf file would loop. now when i went ahead and went into each flv file to edit a couple things, when i went to export them to swf, the swf files wouldn't loop. mind you, some of them did loop, and some of them did not loop. the ones i have edited are all supposed to loop and i cannot figure out what it is thats preventing some of the flv or exported swf files to loop. all i did was take out a few unnecessary frames from the beginning of each flv and nothing more. i am pretty new to Flash and do not know anything about coding and know very little about flash settings.
    i figured that selecting the "loop playback" option in the control drop down menu might help seeing as the flv file does loop when played in the editor, but again when exported to swf the swf file does not loop. what confuses me the most is that some of the exported swf files do loop. ALL of the exported swf files need to loop and my guess is that in order to make that happen, something in the flv file needs to be set correctly.
    can someone please assist me with this issue? if there is a way to simply loop an existing swf file that does not loop, can someone tell me how to do that? any help with this problem is greatly appreciated and i appologize if something like this has been asked before.... i just couldnt stand looking through 22 pages of search results to find the exact solution to my problem
    thank you!!!

    Hi,
    You can use shortDesc property. Something like
    <af:commandToolbarButton text="Some Button"
          id="ctb1" shortDesc="This button does something.."/>-Arun

  • Importing flv with external playback.. loop?!

    Hi!
    I'm trying to create google ads under the 50kb limit which is causing some headaches...anyway! I've noticed something. If I import my flv (which I've created in after effects) into adobe flash CS5.5 with "load external video with playback component" and then export the whole thing out as a SWF the file size is really small. 50 kb's compared to 795.6 kb's if the "embed flv in SWF" option is used.
    So my problem is this, I want to use the option of "load external video with playback component" but I want the video to loop when it's exported out as an SWF. Is this actually possible?
    I've tried some scripts which I've found, but I cant get it to work.
    Any help or advice would be very much appreciated.
    Many thanks!
    M

    Well yes, you can loop the video using the FLVPlayback, but I think you are missing the point of the 50kb google ad limit.
    When you use FLVPlayback, you must also use an external .flv file. So besides the <50kb .swf file, you will also have the >700kb .flv file. You cannot just use the .swf. So together, those two files put you way over the 50kb limit.
    Best wishes,
    Adninjastrator

  • How to loop to a certain frame with an embedded video flv

    Hi everyone,
    I've searched the internet high and low but can't seem to find an answer to my problem. I have an flv video file that I've imported into Flash CS5 project as an embedded movie, because graphic and movie clip both produced still images. I want to embed the final product onto my website, and have the video autostart in the beginning, play all the way through, and then go back to frame 40 or so and loop continuosly from there. I've tried selecting the final frame and applying the instancename.gotoandplay (40); code but it isn't working. I read that this only works on keyframes, so I tried making the final frame a keyframe but because it is an flv file for some reason it isn't allowing me to do that. I'm a newbie, any help is appreciated.
    Dom

    A second option is to use a NetStream video play. This is a much more powerful and versatile way to control video.
    Looping back to any point in the video is very easy.
    All it takes to get started with NetSteam is to go to the Library panel top bar, in the far right is a tiny menu icon....click and open it, choose new video, actionscript controlled. A video (icon) will appear in the Library.
    Drag the video unto the stage, position and set dimensions as needed. Give it an instance name of "video_screen".
    All you need now is a little actionscript:
    stop();
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    video_screen.attachVideo(ns);
    /* Name of your video, with correct path, goes here */
    ns.play("video1.flv");
    the example path assumes that the video file is named "video1.flv" and is in the same folder as the Web page... edit both as needed.
    Test at this point to insure it's working.
    Now to loop add this to the actionscript:
    ns.onStatus = function(info) {
      if(info.code == "NetStream.Play.Stop") {
      trace("Video complete")
        ns.seek(60);
      ns.play(); 
    This example will trace "Video complete" at the end of the video and then "seek" back to 60 seconds into the video and "play" again from that point.
    While it doesn't seek to a frame, you can figure out what time corresponds and use that.
    If you are interested in trying this method, I'd suggest you set up a new, blank Flash doc and test on there. then exact size and placement is no issue. Just get the video playing and looping. Then implement in the real project.
    Best wishes,
    Adninjastrator

  • Warning for Continuous Looping External flv or f4v as2

    Malfunction issued in Continuous Looping External flv or f4v in as2 from containers created in Flash Professional CS6 with code
    on (complete){
    this.autoRewind=true;
    this.play();
    solution: always make a new document!
    Mystic problems with x times resized documents, at media 2 or 3 times play and then not playing external fly/f4v

    use:
    kglad wrote:
    if all your buttons are attached to the same parent:
    on(press) {
      s = new Sound(this);
        s.setVolume(100);
        _parent.mcPlayer.seekToNavCuePoint("pict1");
        mcPlayer.play();
    on (release) {
        i = -100;
        s = new Sound(_parent);
        s.setVolume(0);
        gotoAndStop("reset");
    on (release) {
        i = -100;
        s = new Sound(_parent);
        s.setVolume(100);
        gotoAndStop("hold");

  • FLV Array question - final flv file looping

    So the first part of my question was kindly and quickly
    answered by Rothrock. But I've got a new question that has arisen.
    When I set these up as an array it's ignoring the settings in the
    parameter field for autorewind which is set to false and it's
    looping the last movie file in the array. Is there anyway to avoid
    this by adding a snippet of new code to this code below:
    import mx.controls.MediaDisplay;
    flvURL = new Array();
    flvURL[1] = "preroll_live.flv";
    flvURL[2] = "atlas.flv";
    flvURL[3] = "jones_outro.flv";
    counter = 1;
    my_FLVplybk.contentPath = flvURL[1];
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    counter++;
    if (counter == flvURL) {
    counter = 1;
    my_FLVplybk.contentPath = flvURL[counter];
    my_FLVplybk.addEventListener("complete", listenerObject);
    Preferably I'd like to either:
    Have the movie reset to an array file of my choice but not
    auto play or just Stop the movie on the final frame.
    Any help here will be greatly appreciated.
    Many thanks!
    -Kjup

    Anyone have any ideas on this...let me know if you need more
    details.
    Thanks,
    Kjup

  • I am trying to loop a swf or flv in DM... 2 days of reading and no luck

    I purchased a flash file of an animated flag. The artist did a nice job of making the loop pretty seamless. Here's the file:
    http://videohive.net/item/us-american-flag-loop/18643
    I only recieved a mov file. I converted it to swf and flv. I have the complete Adobe CS3 Edition including Premier and Flash. I also downloaded some other free converters.
    I have spent two days reading web forums on how to make that flag loop in DW. I can't get it going and I'm pretty frustrated. I am a beginner by the way.
    I tried the autoloop & autoplay buttons. I tried entering the parameter of "Loop" = true, I've looked at the code a little to make sure everything related to loop, autoplay, auto-rewind was set to true and a whole bunch of other troubleshooting I've read about. It sounds like it has been a problem for others too.
    At this point I'm willing to pay in bacon double cheesburgers. If you halp me fix this I'll send some Burger King coupons your way.
    Thank you!

    Thank you PZ. I did go through the whole tutorial to see if I was missing something. No luck yet.
    The file I recieved was a mov file (I'm not dealing with a fla file at all). I'm opening the mov file in Flash CS3 and convert and export as flv or swf. Iv'e tried both.
    The only thing I have not done yet was try uploading my file to my remote hosting service to see if a browser will loop it there. I've been doing my previewing in DW CS3 and hit the "view in browser" button.
    If I upload the file to my remote server, would anybody be willing to look at the code and give me a hand in figuring out why it won't loop?
    Thank you and I have read all the past questions about this issue on the Adobe forum's and have tried everything I can possible find.

  • Sound loop in a flv embeded video

    I have embedded an flv sound clip into my Flash file but
    can't seem to get it to loop.
    I'm sure there must be a straightforward way of doing
    this?

    in cs3 and I'll bet in other flash studio environments go to
    the properties panel in lower right hand corner there's a combo box
    that defaults to repeat 1. Just select loop.

Maybe you are looking for

  • Migrating/recreating existing iTunes functionality on a new drive

    I have an apparently-unusual and somewhat complicated problem. I have two drives on my PC, and iTunes is currently installed on my (now-too-small) C drive. I want to get rid of "everything iTunes" on my C drive to free up much-needed space there, and

  • Schedule background job for working days

    Hi, I would like to schedule a background job, but only runs on working days (from Monday to Friday), I am wondering whether it is possible to run as mentioned or not? Kindly advise! Thanks!! br, hy

  • Acrobat 8: How to prevent "Combine Files" from adding a header?

    Hi All. I am using Acrobat 8 (Win XP SP II) and am having a problem with the "Combine Files" feature. In the past, I've used this function to create hundreds of PDF files from thousands of individiual PDF's. It worked great. But now, suddenly, Acroba

  • App similar to stay focused for MacBook Air

    Is there an app similar to stay focused for MacBook Air?

  • BW Consultant need ABAP knowledge (urgent)

    hi Experts, This is rakesh m a biw consultnat wokring since 1yr , now time hae come to learn abap within short period of time so i neeed ur help and guidance. What i want to learn is How to write routines n all for this waht are the  basic funda's i