Flash as2 Game Help: Input, Ouput, and a button

So, my next adventure is this:

  • Input box where the player inputs a dollar amount. 4 digits max.
  • A graphic with an assigned value of 100
  • The player inputs up to 4 digit monetary value, then clicks a submit button. The button is checking the inputbox value with the graphic if they match goes to a new scene. If they don’t match, goes to a different scene.

What I have:

-Button with an instance name of bid
-Input Text box with a max digit input of 4 digits.
-Graphic symbol converted to a MC with an instance name of item 1

I can’t figure out how to code the button so on (release) it will check the 2 values between the value the player inputed and the value I assighned to the item1.

Thanks again for your help ppl

Jason