LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-28-2000, 04:43 AM
Cecil Cecil is offline
Registered User
 
Join Date: Nov 2000
Posts: 9
Rep Power: 0
Cecil is on a distinguished road
Rainbow girl

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.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 02:38 AM.