Jump to content
Search Community

MP3Loader and air for Android

Laertes test
Moderator Tag

Recommended Posts

Hi,

I have been using LoaderMAX on an air for android project and most things work wonderfully.

I have however found one problem.

 

If i load an mp3 and try to loop it , it works on the desktop but not on the actual device ( I have tried Samsung Galaxy TAB and HTC Desire-Z).

 

It is most probably a bug in the Air implementation for android, but I wonder if there might be any way around such a bug.

 

too loop a mp3, I have to use the Event.SOUND_COMPLETE event to restart it wherever it is stopped.

Is there a similar way I can work with a sound loaded with the MP3Loader?

 

regards,

/Lars

Link to comment
Share on other sites

Yeah, sounds like a bug in AIR for Android. But you can still use LoaderMax/MP3Loader - if you want to access the raw Sound object, just use the MP3Loader's "rawContent" property, like:

 

var s:Sound = myLoader.rawContent;

 

You can also listen for the MP3Loader.SOUND_COMPLETE event to be dispatched and then loop it yourself.

 

Does that help?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...