Hi,
Fallen into another pit of actionscript. This is what I have done. I have created a dynamic text box and called is scroller, and then created another and called that scroller1.
I have created some buttons on the same layer that have this code in them
on (release) {
loadText = new LoadVars();
loadText.load("welcome.txt");
loadText.load("welcome1.txt");
picture_holder.loadMovie("image_01.jpg");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.welcome;
scroller2.text = this.welcome1;
}
};
}
This all works fine. Since I have created an finite menu that has buttons within it, I had to place it on another layer. I added the same action script to it but changed a few stuff so it looked like this
on (release) {
loadText = new LoadVars();
loadText.load("flash.txt");
loadText.load("flash1.txt");
picture_holder.loadMovie("");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
scroller.text = true;
scroller2.text = true;
scroller.text = this.flash;
scroller2.text = this.flash1;
}
};
}
Now when I test it, it doesn’t work? I cannot see anything wrong in the actionscript, but is there something wrong about having it trying to load external text onto another layer?