A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: simple loop flv video script. Close?

  1. #1
    Senior Member b18269's Avatar
    Join Date
    Jan 2006
    Location
    London, UK
    Posts
    167

    simple loop flv video script. Close?

    I have an flv in a file called videos/intro.flv

    It is linked to my timeline in a single key frame.
    All I want to do is just get the video to loop when it reaches the end. I have been using various bits of code such as:

    -------------------------------
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
    intro.rewind();
    };
    intro.addEventListener("complete", listenerObject);

    -------------------------------

    I think I maybe completley missing the mark here, maybe(most likely). Am I close to solving this looping flv video?

  2. #2
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    are you using the flv component? if so, if you click on the component and look at the parameters tab you'll should see a loop option, which needs to be set to true. Otherwise maybe post up your fla file for me to look at. You're very close but without knowing exactly how you're setting it all up, i'm only guessing.
    This is your brain. This is your brain on script.

  3. #3
    Senior Member b18269's Avatar
    Join Date
    Jan 2006
    Location
    London, UK
    Posts
    167
    Thanks for the reply. attached is the screen grab of my parameters (there is no loop option on it for me, and the autoRewind only sends the flv to the start and does not begin to play). It would not let me upload the flv file or fla on here?! : ( can I send it to you by email instead?

    Thanks for looking, hopefully we can get this sorted
    Attached Images Attached Images

  4. #4
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176

  5. #5
    Senior Member b18269's Avatar
    Join Date
    Jan 2006
    Location
    London, UK
    Posts
    167
    Cheers mate, this code worked:


    var obj:Object = new Object();
    obj.complete = function(){
    videintro.play();
    };

    videintro.addEventListener("complete", obj);
    videintro.contentPath = "videos/intro.flv";

    Once again you came up trumps

  6. #6
    Junior Member
    Join Date
    Dec 2007
    Posts
    1
    Quote Originally Posted by b18269
    Cheers mate, this code worked:


    var obj:Object = new Object();
    obj.complete = function(){
    videintro.play();
    };

    videintro.addEventListener("complete", obj);
    videintro.contentPath = "videos/intro.flv";

    Once again you came up trumps
    THANK YOU!!!!! I have been trying to find a script that works for like 2 hours. This did the trick perfectly.. now I just need to get my video loop to be seemless

  7. #7
    Junior Member
    Join Date
    Apr 2001
    Posts
    1
    I'm trying to create a loop without a skin. Will this method work? Didn't the first attempt.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center