In frame 2 we put a function to load text for the slides. We could have put this function into frame 1 as well.
stop();
//function to load slidetext
function loadSlidetext(slideName,i) {
newText = (slideName + i + ".txt");
loadVarsText = new loadVars();
loadVarsText.load(newText);
loadVarsText.onLoad = function(success) {
if(success) {
scroller.html = true;
scroller.htmlText = this.myText;
}else{
trace("not loaded");
}
}
}
//calling a url for an external mp3 file to play music
mySound = new Sound();
mySound.loadSound("http://geocities.com/jamit_5000/audio/lanier3.mp3",true);