Hi! I am trying to load text into a Flash presentation from an external text file. The external photos are loading without a problem. When I push a button, I want the text to load. But I am having trouble with the action script (I am new to this). I am not receiving any error message in Flash.
I have the following on my actions frame in main movie:
total_photos = 7;
myCaptions = new LoadVars();
myCaptions.load("maptext.txt"
;
info_txt.text = eval("myCaptions.info" + newnumber);
title_txt.text = eval("myCaptions.title" + newnumber);
On the buttons inside the movie clip I have (number of photo varies):
on (release) {
current_photo = "photo2.jpg";
newCaption = myCaptions.title2;
newCaption = myCaptions.info2;
};
Thanks for any suggestions you can make!
Janna
I have the following on my actions frame in main movie:
total_photos = 7;
myCaptions = new LoadVars();
myCaptions.load("maptext.txt"
info_txt.text = eval("myCaptions.info" + newnumber);
title_txt.text = eval("myCaptions.title" + newnumber);
On the buttons inside the movie clip I have (number of photo varies):
on (release) {
current_photo = "photo2.jpg";
newCaption = myCaptions.title2;
newCaption = myCaptions.info2;
};
Thanks for any suggestions you can make!
Janna