what is the proper syntax/method for using the variable “total” in the following loop? And how do I make sure the value of total is a number and not a string of text?
for (i=1; i<=total; ++i){
    var returned = returned+"
"+search[“Summary” +i];
}
I’m pulling my total variable in via a string from a web page, the string looks like this “&TotalRecords=2” that string if i trace it gives me the result “2”
however if I look at my variables in the project (from the debugger) I have the value TotalRecords:"2 " any idea what that means?
The problem lied in the coldfusion page that was processing my request.
Be weary, if you write a page in coldfusion or any other dynamic style page and pass values back to flash. Flash will use any spaces in your string and interpret those spaces. In my case it added the " " tag, which in flash is interpreted as a tab.