flash/js question
flash/js question
Out of context: Reply #5
- Started
- Last post
- 8 Responses
- chrisRG0
an easy way:
put your mp3 file on your library and give it an id, like: "my_music"...
then put this lines into your timeline:var sound:Sound = new Sound();
sound.attachSound( "my_music" );function playTheSound():Void{
sound.start();
}myButton.onPress = function(){
playTheSound();
}