1.关于WLoader,深刻理解as的事件机制
WLoader.wLoader对象完成加载事件的侦听器,WLoader.wLoader的完成事件在WLoader.wLoader的complete方法中发送事实上WLoader.wLoader只发送Event.COMPLETE事件,而不会发送IOErrorEvent.IO_ERROR事件,当WLoader.wLoader在加载完数据
做了相应操作以后,即WLoader.wLoader自身的loader:Loader在完成加载后,WLoader.wLoader发送了Event.COMPLETE事件,
当WLoader.wLoader自身的loader:Loader侦听到IOErrorEvent.IO_ERROR后,在IOErrorEvent.IO_ERROR的侦听器做了相应操作
而WLoader.wLoader本身没有发送IOErrorEvent.IO_ERROR。在WLoader.wLoader中也没有发送IOErrorEvent.IO_ERROR事件的代码
所以在本类中WLoader.wLoader.addEventListener(IOErrorEvent.IO_ERROR, IoerrorChangeData);是无意义的