1 Attachment(s)
Textbox, Strings and Pushing Arrays. Any Ideas?
Hi Bret,
Still trying to get past this text box problem. I've got to this point with help
var correctString="The sad man";
var correctArray=correctString.split(' ');
txt2.onChanged=function(){
var inArray=this.text.split(' ');
var resultArray=new Array();
for(i=0;i<correctArray.length;i++){
if(inArray[i]==correctArray[i]){
resultArray[i]='correct';
gotoandStop(3);
}else{
resultArray[i]=' not correct "' + correctArray[i] +'"-------';
}
}
txt3.text=(resultArray)
}
Selection.setFocus("txt2var");
stop();
But
1. it goes to frame 3 even if only first word is correct should only do it if all correct.
2. how can I not show the incorrect words ie have *** instead of sad?
PS can no one solve the koolmoves exchange menu1 problem - 189 views but only you responding.
textbox, strings and arrays
Thank for this Chris - works great.
If you have the time can you tell me what I did wrong?
Why is the word now ***
thanks to you and Bret for answering this forum
ja