MovieClip goto the input text

I have a input textbox,an enter button and a movieclip. When I click enter I want the movieclip to go to the frame of the number that is input in the textbox.

Input textbox Instace name = page_txt
Movieclip Instance name = text_mc

Button actions:

on(release){
    _root.text_mc.gotoAndStop(_root.page_txt == _root.page_txt);
}

Any ideas?