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 22, 2022

    you're welcome 


    Hey KGLad

     

    I wonder if you can help me.  I've added a second video to my project in the same manner as before, and I used your script again ...

     

    quote

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

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


    By @kglad

     

    Only this time I'm getting an error.

     

    "1021: Duplicate function definition."

     

    What can I do?