Hello,
I am a newbie on the forum as well as to Flash and as expected I,m already into problems. I have over 20 buttons with over 20 frames in my movie. I want each button, when clicked, to got to a required frame and then load text dynamically from an extrernal file, displaying it in the same content box. I have tried loads of technics but dont seem to get it working. Please help!!
Here is the code attached to one of my buttons:
on (release) {
gotoAndstop (“home”);
loadText = new LoadVars();
loadText.load(“myhome.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller_text.html = true;
scroller_text.htmlText = this.mypage1;
}
};
}
With the above code I am able to go to the home page at the click of the button “home” but text from “myhome.txt” does not load. Please help!
Thanks.