Jump to content
Search Community

Loading audio content from a Local Shared Object

AudioSparx test
Moderator Tag

Recommended Posts

Is there any way to make the MP3 Loader load audio content from a local Shared Object?  We've created the local shared object just fine, and we can make it play back by using a SAMPLE_DATA listener, to dump the byte array to the audio socket, like this:

 

mySound.addEventListener(SampleDataEvent.SAMPLE_DATA, dumpByteArray);

 

But we're rather load it into an MP3Loader object so that we can use all of the native methods of the loader.  We tried to set the content property of the loader, but it's read-only, so that did not work.  We tried to instantiate the listener to the content property (which is a Sound, so should work), but it also did not work.  Any ideas?

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...