views:

43

answers:

1

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 "filename.randomnumbersandletters.swf").

Thanks!

A: 

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.

bhups