Answer the question
In order to leave comments, you need to log in
Calling a function from actionscript3 with javascript?
How to run this function using javascript?
function play()
{
var mySound:Sound = new Sound();
mySound.load(new URLRequest("myFavSong.mp3"));
mySound.play();
}
Answer the question
In order to leave comments, you need to log in
External Interface PS You don't need Flash to play music in modern browsers, regular JavaScript
can handle it too .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question