This is all just for a bit of fun, and to learn more about actionscript really so being secure isn't an issue here.

Now when You hit the enter button I want it to check the contents of the dynamic textbox to make sure they match a set number, if so forward you to cerain frame number. display is the variable name for the dynamic textbox.
Am I going about this the right way?

on(Release){
if(display == answer){
this.gotoAndStop("2");
}
else{
this.gotoAndStop("3");
}
}