开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜