Asfunctions

G’day guys,

Let me try to explain what I’m attempting here:

  • I’ve got a button in my swf, which when pressed, loads text into an existing text box thusly:
on (press){
    loadText = new LoadVars();
    loadText.load("text/whatever.txt");
    loadText.onLoad = function(success) {
        if (success) {
            // trace(success);
            _root.text_mc.textbox.html = true;
            _root.text_mc.textbox.htmlText = this.myNews;
        }
    }
;}

I want to use asfunction in the external text to have a link, which, when pressed, gets a URL AND stops all sounds in the swf. The reason for this is that the URLs have audio playing, and I don’t want the user to hear two songs at once. Could someone please run me through it?

Cheers