Hi i'm developing an app which simply load files (images and sounds) and uses binary data. Application is working fine on Windows, but it raises error on Mac.
Now i dont own Mac so i cant debug it, I also googled but couldnt find anything close to it.
Please advise
Thanks
PS: Its an AIR APP
Here are snippets to understand the code
//browse file _loadFile.addEventListener(Event.SELECT, selectHandler); _loadFile.browseForOpen(title, typeFilter); //selectHandler _loadFile.addEventListener(Event.COMPLETE, loadCompleteHandler); _loadFile.load(); //loadCompleteHandler //works on windows but TypeError on Mac switch(file.type.toLowerCase()){ case ".mp3": var sound:Sound = new Sound(); sound.loadCompressedDataFromByteArray(file.data, file.data.length); fileHandler(sound); break; case ".jpg": case ".png": case ".jpeg": case ".gif": loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadBytesHandler); loader.loadBytes(file.data); break; } //loadBytesHandler fileHandler(loader.content);