Does flash.display.Loader determine the file by filename or header?
Does flash.display.Loader determine the file by filename or header?
The reason why I ask is that I'm getting an IOError: "Unknown File Type" when loading an swf which has a strange filename (in the form of "file开发者_运维百科name.randomnumbersandletters.swf").
Thanks!
Probably you need to encode (escape(file_path)) the swf file url as it might contain some special character. And flash loader determines the file type by header instead of filename.
精彩评论