我用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()
}
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()
}

本文探讨了使用FlashLoader和URLLoader加载SWF文件的方法,并介绍了如何通过编程控制加载后的SWF内容,使其不自动播放。此外,还提供了一个示例代码来说明具体的实现过程。
288

被折叠的 条评论
为什么被折叠?



