ITeye博客

请问如何才能让加载到一半的SWF不自动播放

AS3 · 2012-02-29 03:06 · 文章转载 · 问题总结 · Web前端 · Markdown

我用loader加载l=new Loader();

      l.load(new URLRequest("两个片头.swf"));

      l.contentLoaderInfo.addEventListener(Event.COMPLETE,oncomplete);

      l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onpro);

复制代码加载到一半的时候就开始自动播放了 能让它不自动播放吗 还有没有其他的加载方式 听说用URLLoader也可以加载 但我如何读取到被加载内容的属性呢

1 用URLLoader加载,例子发过无数次 2 被加载文件中加上stop

l.contentLoaderInfo.addEventListener(Event.INIT,init);

function init()

{

    l.content.stop()

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。