Error in program. Palindrome ActionScript3.0
Need help identifying the error. Here is the code
// This line makes the button, btnCheck wait for a mouse click
// When the button is clicked, the checkWord function is called
btnCheck.addEventListener(MouseEvent.CLICK, checkWord);
// This is the checkWord function
// e:MouseEvent is the click event experienced by the button
// void indicates that the function does not return a value
function checkWord(e:MouseEvent):void
{
//declare the variables
var word:String;
// text in word
word = (txtinWord.text);
// reverse the word
if
(word = word); {
lblPalindrome.text = "This word is a palindrome";
}
else
{
lblPalindrome.text = "This word is not a palindrome";
}
}
program

