I have a dynamic txt frame in my main swf. When buttons are selected, text from an external txt file loads into the text frame. This all works fine.
What I would like to do is be able to load an external swf into an empty MC and then be able to dictate what the buttons on the external swf do (such as load text).
The last line of the below AS is my attempt to path to a button that is on an external swf
//_root.1.noiseaudio.easing.theText.sad.onPress = function () {
loadTxt(path+“sad”)
}//
but that didn’t work. Any help is greatly appreciated.
// start here. This is on a frame on the _root swf.
System.useCodepage = true
path = “text/”;
loadTxt=function(path){
txt.text = “loading data…”
loadData = new LoadVars();
loadData.onLoad = function() {
txt.htmlText = this.output;
txt.scroll=1
checkScroll()
};
loadData.load(path+".txt");
}
loadTxt(path+“news”)
bio.onPress = function () {
loadTxt(path+“bio”)
}
news.onPress = function () {
loadTxt(path+“news”)
}
scribble.onPress = function () {
loadTxt(path+“scribble”)
}
_root.1.noiseaudio.easing.theText.sad.onPress = function () {
loadTxt(path+“sad”)
}