Hi,
I am developing a Image uploader using Flash 10. I am using Filereference object to browse images and Loader to show the image:
Sample code: var tempFileRef:FileReference = FileReference(ev.target); var oLoader:Loader = new Loader(); oLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onImageLoad); oLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError); oLoader.loadBytes(tempFileRef.data);
It works fine with .jpg and .gif files but when I browse .bmp or .tiff file, I am getting the error: Error #2124: Loaded file is an unknown type.
Is there a way to load and display browsed .bmp images from desktop?
Thanks