开发者

Flash .swf file not looping

开发者 https://www.devze.com 2023-02-19 07:53 出处:网络
I have a .swf file that is not looping although I have added the parameter to do so. It play开发者_Go百科s just the once, and at the end of the video it stops instead of looping.

I have a .swf file that is not looping although I have added the parameter to do so. It play开发者_Go百科s just the once, and at the end of the video it stops instead of looping. Can someone tell me what I might be doing wrong here?

       <div id="video">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="211" height="316" id="FLVPlayer" style="visibility: visible; ">
            <param name="movie" value="FLVPlayer_Progressive.swf">
            <param name="quality" value="best">
            <param name="wmode" value="opaque">
            <param name="scale" value="noscale">
            <PARAM NAME="loop" VALUE="true"> 
            <param name="salign" value="lt">
            <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_2&amp;skinAutoHide=true&amp;streamName=ScreenOnlyDemo&amp;autoPlay=true&amp;loop=true">
            <param name="swfversion" value="8,0,0,0">
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf">
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="211" height="316">
              <!--<![endif]-->
              <param name="quality" value="best">
              <param name="wmode" value="opaque">
              <PARAM NAME="loop" VALUE="true">
              <param name="scale" value="noscale">
              <param name="salign" value="lt">
              <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=Clear_Skin_2&amp;skinAutoHide=true&amp;streamName=ScreenOnlyDemo&amp;autoPlay=true&amp;loop=true">
              <param name="swfversion" value="8,0,0,0">
              <param name="expressinstall" value="Scripts/expressInstall.swf">
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>

              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
        </div><!-- video end -->


It depends on what did you set in your Flash file (FLA). By default, a Flash file loops when it reaches the last frame.

FYI, to stop the loop, add a stop(); in the ActionScript at the end frame. Valid for ActionScript 1-3.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号