Accessing downloaded content in../Library/Caches with LoaderMax
Hi,
I am trying to port an air for android app to iOS and my main problem has to do with downloaded content.
I have a number of assets ( images and mp3's) that i download and place in the ../Library/Caches folder accordingto the apple guidelines.
My Code relies heavily on Greensock LoaderMax to load the assets into the application.
This works very well on android but i cant get LoaderMax fo find the files on iOS.
i get the following error when debugging on OSX:
i add a number of files with:
var queue:LoaderMax = new LoaderMax({name:"soundQueue", onComplete:loopSoundsCompleteHandler, onError:errorHandler});
fileName = "Library/Caches/" + fileName;
queue.append( new MP3Loader(fileName, {name:"name1", repeat:-1, autoPlay:false}) );
...
...
and then i load the queue with
queue.load();
and i reveice the following error:
Error on MP3Loader 'bpallah' (Library/Caches/resources/snd/bpall.mp3): Error #2032: Stream Error. URL: app:/Library/Caches/resources/snd/bpall.mp3
Does anyone have a clue how to do this?
regards,
/Lars
