Hey everyone,
Hopefully some one will know how to help, I don’t think it should be too difficult for someone with a little more experience than me. So, I have 2 buttons and when each is clicked the same box appears with text using external text to give info for the button. How do I call a different text file for each button but load in the same dynamic text field? I have to basic variable set up for the basic external text loader that looks like this:
var loader:URLLoader= new URLLoader ();
var OdinTxt: URLRequest = new URLRequest("odin_text.txt");
function textLoaded(event:Event):void
{
info_text.htmlText = loader.data;
}
loader.load(OdinTxt);
loader.addEventListener(Event.COMPLETE, textLoaded);
Thanks!
Tim