开发者

Flash movie not looping (even with loop parameter set to "true")

I have the following embedded flash code:

<object width="647" height="483" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"> 
<param name="salign" value="lt" /> 
<param name="quality" value="high" />   
<param name="scale" value="noscale" /> 
<param name="wmode" value="transparent" /> 
<param name="loop" value="true" />
<param name="play" value="true" />
<param name="movie" value="http://domain.com/movie.swf" />  
<embed width="647" height="483" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://domain.com/movie.开发者_运维百科swf" wmode="transparent"> 
</embed>
</object>

I've been trying to get it to loop after it finishes playing, but it doesn't seem to work even with the "loop" parameter set to "true." I read online that there may be something with the flash file (exporting from the original .fla), but this is actually a .flv file that I imported into Flash, and exported as an .swf file.

Any ideas would be really helpful! Thanks.


A couple of options:

  1. Look at autoRewind
  2. Look at a combination of VideoEvent.COMPLETE and seek()

A copy&paste example for the latter:

import fl.video.FLVPlayback;
import fl.video.VideoEvent;

YOUR_VIDEO_INSTANCE_NAME.addEventListener("complete", _replay);

function _replay(e:VideoEvent):void
{
    var vid:FLVPlayback = FLVPlayback(e.target);

    vid.seek(0);
    vid.play();
}


Actually, I found the answer here which worked like a charm: http://groups.google.com/group/macromedia.flash/browse_thread/thread/7e1cc960a1ba9f29/dad99bda911f8d71

Thanks for looking at it though!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜