Skip to main content
ChrisFrost
Known Participant
June 15, 2022
解決済み

Movie Clip Symbol not looping video, and no audio

  • June 15, 2022
  • 返信数 1.
  • 634 ビュー

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

    このトピックへの返信は締め切られました。
    解決に役立った回答 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

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

    ChrisFrost
    ChrisFrost作成者
    Known Participant
    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();
    }


    That worked, thank you so much!

     

    Do you have any tips on how to get the audio from that video to sound? It's still silent.