hitTest does not produce dynamic text

Hey all,

I have a movieclip that uses the hitTest function to lock into a postion when dragged to the appropriate location. I have a text field that I want to display “Good Job”. But my code below does not do it.

I tried setting the if statement to say that if my mc’s x is at 489, then say “Good Job!”, else display nothing. The AS is on the main timeline.

i[COLOR=Blue]f(this.MIDSLVT_mc._x==489){
this.txtScenario.text = “Good Job!”;
}else{
this.txtScenario.text = " ";
}

[COLOR=Black]Thanks.[/COLOR]
[/COLOR]