---
title: "请问如何才能让加载到一半的SWF不自动播放"
author: "AS3"
date: "2012-02-29T03:06:44Z"
tags: []
categories: ["Web前端"]
slug: "swf"
draft: false
lastmod: "2012-02-29T03:06:44Z"
id: 1431019
url: "https://as3.iteye.com/blog/1431019"
---

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