If/Else problem :(

Hello all,

I’m making a site for a friend (therefore learning Flash as I go) and have come to a confusing stop.

I’ve got a slide in contact form which appears when clicking a button.

The button displays the contact form if a textbox displays “false”, but if the textbox displays “true” then it retracts the form.
I’ve had to use a textbox as a kind of boolean, because Flash seems to think the X position of the form is static … even though it slides from left to right.

Anyway … I’ve setup a ‘if/else’ statement to determin weather or not the menu should slide.

on(release)
{
	if(_root.contactStat.text = "true")
	{
		_root.contactForm.gotoAndPlay(15);
	}
	else
	{
		_root.contactForm.gotoAndPlay(1);
	}
}

Even if the textbox displays “false” the the movie clip plays from Frame15.

How can I get round this ?