Skip to main content
ChrisFrost
Known Participant
Jun 15, 2022 11:30 PM UTC
Answered

Movie Clip Symbol not looping video, and no audio

Hey guys

 

As per the title, I've got a video set as a background using the Movie Clip symbol and I've followed every tutorial I can find, but it's not looping plus there's no audio.  Nothing I can find online explains this.  Anyone have any suggestions please?

 

Many thanks!

 

Chris

    This topic is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect answer
    Community Expert
    Jun 18, 2022 3:46 PM UTC

    if you mean flvplayback component, assign it an instance name (eg, flv_pb) and use:

     

    import fl.video.VideoEvent;
    flv_pb.autoRewind = true;
    flv_pb.addEventListener(fl.video.VideoEvent.AUTO_REWOUND,rewoundF);

    function rewoundF(e:fl.video.VideoEvent){
    flv_pb.seek(0);
    flv_pb.play();
    }

    17 replies

    kglad
    Community Expert
    Community Expert
    Jun 16, 2022 2:58 PM UTC

    your movieclip needs to have the video added to its (the movieclip) timeline, or use a video component that's set to loop.  then you have to use control > test > ...

    Translate
    ChrisFrost
    Known Participant
    Jun 18, 2022 3:22 PM UTC

    Hi kglad

     

    Thank you for your reply.  I don't know if this helps, but the only way I could get a MP4 video clip into this project was as a Video Component.  Does this change anything?

     

    Many thanks

     

    Chris

    Translate
    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    Jun 18, 2022 3:46 PM UTC

    if you mean flvplayback component, assign it an instance name (eg, flv_pb) and use:

     

    import fl.video.VideoEvent;
    flv_pb.autoRewind = true;
    flv_pb.addEventListener(fl.video.VideoEvent.AUTO_REWOUND,rewoundF);

    function rewoundF(e:fl.video.VideoEvent){
    flv_pb.seek(0);
    flv_pb.play();
    }

    Translate