A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: consecutively playing flv files

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    14

    Exclamation consecutively playing flv files

    Ok so I have a flash banner I am working on. It is basically 3 flv files. 1 for the main content, and 2 for the background.

    What I want to do is load in the first flv for the background, as soon as it is done playing I want to play the second flv, Then once the second flv is finished playing I want it to loop continusiouly.

    The main content flv will then be layed overtop of this and play through once and stop while the background continues to loop.

    **QUESTION HERE** What I am having trouble with is playing the first flv, and then telling it to play the second flv. I have the code to loop the seccond flv which is

    *****************
    import fl.video.*;
    background.addEventListener(VideoEvent.COMPLETE, rewind);
    function rewind(eventObject:VideoEvent):void {
    background.autoRewind=true;
    background.play();
    }
    *********************

    Any body have any idea how I can get the first file to play and then play the seccond one and loop it?

    I BEG YOU FOR YOUR HELP! I AM GOING BALD!<------FROM PULLING MY HAIR OUT!

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You need to change the source:
    function rewind (eventObject:VideoEvent):void
    {
    background.source = "secn.flv";
    background.play ();
    }

    Also rename your flvplayback, since background is a reserved word.
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

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