开发者

Does flash.display.Loader determine the file by filename or header?

开发者 https://www.devze.com 2022-12-10 00:05 出处:网络
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 th

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消