
Welcome Guest
|
#1
|
|||
|
|||
|
Hi there:
I have a problem. In my project, i load 5 lines of text from an XML file, 4 of these text can then be seen in various text field. the 5th one is stored in a variable. Next i want to compare the 5th line of text with each of the 4 lines of text: If (txt5 == txt1) { score = Number(score) + 1; }else{ score = Number(score) - 1; } But my result shows me that it always go to the else statement even though txt5 and txt1 is the same. I have tried .toLowerCase(), .valueof, everything, but nothing works that will give êxecute score = Number(score) + 1; even when txt5 is really equal to txt1. However, .length works. Am i missing something here Note: the text can be numbers, lots of words. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hi i need urgent help | Ash tree | Flash CS4 |
2 | 08-11-2009 08:55 AM |
| Understanding Strings in a hexdump | nitrostar | Newbies |
0 | 07-24-2008 10:28 PM |
| How to correctly control one MC with another - custom listeners, classes or strings? | iblokh | Newbies |
0 | 12-25-2007 08:04 PM |
| Flash Video Encoder Compare | flashfever2nd | New Softwares | 1 | 05-20-2006 03:46 AM |
| How do I get Flash to compare to Varibles that are strings | flashgirl | Flash 5 Actionscript |
5 | 10-15-2001 03:26 PM |





