Jump to content

Playing an mp3 file from a link in Flash


tedvieira
 Share

Recommended Posts

Make your button and give it the instance name of myButton. Place the following code on the Actions layer of your timeline (in the Actions panel.)

myButton.onRelease = function(){var my_sound:Sound = new Sound();my_sound.loadSound("URL.mp3", true);}

This creates a new sound and sets it to play as it is loading.

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
 Share

×
×
  • Create New...