flash - How do you get the files type/extension based on the file content in ActionScript? -
how file type/extension based on file content in actionscript? example have jpg image following file name: niceimage. based on file name, won't know whats files extension me it's important know exact type of image.
you have read in binary data (https://www.google.com/search?q=read+binary+file+in+as3) , parse image header yourself.
there libraries out there (such http://www.greensock.com/loadermax/) can if care loading content scene.
Comments
Post a Comment