0

this is my actionscript function code:

function sayWhat(){
var mySound:Sound = new Sound();
mySound.load(new URLRequest("test.mp3"));
mySound.play();
txt.text = "loaded!";

}

and i want to load the function when the user click on the link "LOAD"

1 Answer 1

1

You need to use ExternalInterface.addCallback.

And here is an example

Sign up to request clarification or add additional context in comments.

1 Comment

yeah i tried it but it didnt do nothing.. can you give me a example with my function?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.