Ctrl+Z
August 20th, 2003, 02:19 AM
i'm trying to produce a one frame random quote field
i have a dyn text field "quotebox" with the var of "quotefield"
rn=random(10);
loadText=new loadVars();
loadText.load("quotes.txt");
quotern=["quote"+rn];
loadText.onLoad=function() {
quotefield.text=quotern;
};
that's what i have for code
on the qoutes.txt file i have quote1-quote10 listed
i can get the quotern to display in the text field but can't get the quotes in the text field unless i do this
loadText.onLoad=function() {
quotefield.text=quote10;
add the quote# to the code
which then displays the quote
if anyone has any ideas
thanks
i have a dyn text field "quotebox" with the var of "quotefield"
rn=random(10);
loadText=new loadVars();
loadText.load("quotes.txt");
quotern=["quote"+rn];
loadText.onLoad=function() {
quotefield.text=quotern;
};
that's what i have for code
on the qoutes.txt file i have quote1-quote10 listed
i can get the quotern to display in the text field but can't get the quotes in the text field unless i do this
loadText.onLoad=function() {
quotefield.text=quote10;
add the quote# to the code
which then displays the quote
if anyone has any ideas
thanks