mercredi 27 mai 2015

How to load a mp3 file from internal storage?

I'm working on a mobile project which needs to play a mp3 from internal storage.

My code:

Var r:URLRequest = new URLRequest("/storage/emulated/0/mysound.mp3");

Var s:Sound = new Sound (r);
S.play();

But the path is not correct. What is the path of internal storage?

Aucun commentaire:

Enregistrer un commentaire