confused1
09-18-2003, 03:10 PM
I have a variable in a text file for a total of announcements. It reads:
"&totalAnnounce = 3". In my flash movie, I have a frame that says:
totalAnnounce = Number(totalAnnounce)
count = count + 1
thinking that the first line would convert the definition of 'totalAnnounce' into a numeric value. In a following frame, I have the code:
count = count + 1
if (totalAnnounce > count) {
gotoAndPlay("announce3");
} else {
gotoAndPlay(1);
so that the movie keeps going to the next section until the # of announcements ='s the count number. If I put:
totalAnnounce = 5 (or some number)
it works fine. But how do I get my code to read the value of the number that someone has entered in the text file? Thank you for the help!
"&totalAnnounce = 3". In my flash movie, I have a frame that says:
totalAnnounce = Number(totalAnnounce)
count = count + 1
thinking that the first line would convert the definition of 'totalAnnounce' into a numeric value. In a following frame, I have the code:
count = count + 1
if (totalAnnounce > count) {
gotoAndPlay("announce3");
} else {
gotoAndPlay(1);
so that the movie keeps going to the next section until the # of announcements ='s the count number. If I put:
totalAnnounce = 5 (or some number)
it works fine. But how do I get my code to read the value of the number that someone has entered in the text file? Thank you for the help!