将对象传递给加载器的事件处理器的推荐方式是什么?Actionscript:如何将对象传递给加载器事件
var l:Loader = new Loader();
var o:Object = new Object();
l.tag = o; // i imagine something like this
l.contentLoaderInfo.addEventListener(Event.COMPLETE, splashCompleted);
l.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, splashIoerror);
l.load(new URLRequest(path));
function splashCompleted(e:Event):void
{
// here i want to access the object o
}
谢谢,我只是想,AS已经内置了像C#等其他语言一样的内置方式。 – clamp