dex002
08-09-2005, 05:38 AM
This code is supposed to create a dynamic number of textfields and based on a loop. It almost works. The textfields are kind of there but not there. i.e. I can't see them, but when I hover over where they should be with my mouse, the mouse changes to a text tool, which makes me think I'm on the right track. Any ideas where I've gone wrong??
function GetGigs_Result( re:ResultEvent ):Void {
result_length = re.result.length;
i = 0
j = 0
while (i<result_length) {
gigs="<b>" + re.result[i].GIG + "</b>" + "<br>" + re.result[i].VENUE + "<br>" + re.result[i].ADDRESS + "<br>" + re.result[i].FGIG_DATE + re.result[i].TIME + "<br>" + re.result[i].COST;
i = i + 0
j = j + 100
this.createTextField("my_txt"+i,100+j,0,-300+j,100,100);
my_txt.html=true;
my_txt.multiline=true;
my_txt.wordWrap=true;
my_txt.htmlText=gigs;
}
}
function GetGigs_Fault( fe:FaultEvent ):Void {
gigs_txt.htmlText = "Sorry, there is a problem. Please try again."
}
function GetGigs_Result( re:ResultEvent ):Void {
result_length = re.result.length;
i = 0
j = 0
while (i<result_length) {
gigs="<b>" + re.result[i].GIG + "</b>" + "<br>" + re.result[i].VENUE + "<br>" + re.result[i].ADDRESS + "<br>" + re.result[i].FGIG_DATE + re.result[i].TIME + "<br>" + re.result[i].COST;
i = i + 0
j = j + 100
this.createTextField("my_txt"+i,100+j,0,-300+j,100,100);
my_txt.html=true;
my_txt.multiline=true;
my_txt.wordWrap=true;
my_txt.htmlText=gigs;
}
}
function GetGigs_Fault( fe:FaultEvent ):Void {
gigs_txt.htmlText = "Sorry, there is a problem. Please try again."
}