Skip to main content
ChrisFrost
Known Participant
June 15, 2022
Answered

Movie Clip Symbol not looping video, and no audio

  • June 15, 2022
  • 1 reply
  • 629 views

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 has been closed for replies.
    Correct answer kglad

    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();
    }

    1 reply

    kglad
    Community Expert
    Community Expert
    June 16, 2022

    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 > ...

    ChrisFrost
    Known Participant
    June 18, 2022

    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

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    June 18, 2022

    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();
    }