URLLoader를 사용하면로드 된 파일의 파일 이름을 가져 오는 방법이 있습니까?URLLoader로드 된 URL을 가져 오는 방법은 무엇입니까?
public function loadCSS():void {
var urlLoader:URLLoader = new URLLoader();
urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
urlLoader.load(new URLRequest("cssFile1"));
urlLoader.load(new URLRequest("cssFile2"));
urlLoader.load(new URLRequest("cssFile3"));
}
private function urlLoader_complete(evt:Event):void {
// *****How can I get the file name here?
var css:String = URLLoader(evt.currentTarget).data;
// Do lots of stuff
}