Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    I can't get my Flash video to automatically repeat. I have the correct parameter in place (so.addParam("loop", "true");) but my video still doesn't loop.

    Any thoughts about how to fix this problem?

    Thanks,
    Warren
    • CommentAuthorAran
    • CommentTimeMay 1st 2007
     
    Warren.

    You shouldn't need to add any params to make your file loop. There must be a stop() action somewhere in your flash file. Do you want to post a link to your actual page?
  2.  
    Hi Aran!

    I've looked everywhere for some type of stop() action but can't find any. Does the "rewind" parameter cause a stop?

    Anyhow, here's the link to my test page: http://www.hightechstrategies.com/metron/flash_test/index.html

    In the subdirectory called "flash_test" I have also place the .fla file if that helps. It's named "products.fla"

    Thanks very much for looking at this.

    Best regards,
    Warren
    • CommentAuthorAran
    • CommentTimeMay 3rd 2007
     
    Warren.

    Thanks for the extra info. Now that I know you are using a video compent, I can actaually help :) The FLVPlayback component means you have to add extra code in order to loop. Basically you have to listen to a "event" to see when the video has completed and tell it to start playing again. The code is as follows:

    import mx.video.*;
    // create a listener object which will 'hear' what events are being broadcast from the flvplayer
    var videoListener:Object = new Object();
    // code to run when we get the 'complete' event from the flvplayer
    videoListener.complete = function(eventObject:Object):Void {
    // play the video again
    vidplayer.play();
    };
    // add the videoListener object to the list of objects which subscribe to the flvplayer events
    vidplayer.addEventListener("complete", videoListener);
    // BTW - vidplayer is the instance name I gave to your FLVPlayback component

    I have modified yout FLA here : http://www.misterhee.com/tests/products.zip
    Note that I have changed the flv video path to the absolute path on your webserver so I could test it locally from the flash IDE. Change this if you like (if the file is going to move etc)