Hi Whisper,
we solved that problem...But whats wrong with this one.. I sometimes get "undefined" values in some textboxes
could you please fix that ?
thanks
PHP Code:
on(press)
{
var bir=new Array(" ","I","you","he","she","it","we","they")
var sayb=Math.floor(Math.random()*6)+1;
var sayc=Math.floor(Math.random()*16)+1;
var iki=new Array()
for(var i=0;i<=4;i++)
{
_root["p"+i].text = bir[sayb+i];
}
iki[0]="going to school now";
iki[1]="drinking milk now";
iki[2]="eating apples now";
iki[3]="watching tv now";
iki[4]="opening the door now";
iki[5]="reading a book now";
iki[6]="speaking English now";
iki[7]="helping students now";
iki[8]="writing a letter now";
iki[9]="singing a song now";
iki[10]="answering the questions now";
iki[11]="playing tennis now";
iki[12]="having breakfast now";
iki[13]="making a cake now";
iki[14]="drawing a flower now";
iki[15]="cleaning the board now";
iki[16]="doing homework now";
for(var m=0;m<=15;m++)
{
_root["t"+m].text = iki[sayc+m];
}
}