"input text to be converted using button" problem

yes! the title of this thread is kinda messed up …

anyway, i am specifically refering to the binary to decimal conversion tutorial … but this is more of a general query too

sooo… in this turorial, i have all the code i really need to either convert from binary to decimal or vis-a-versa, basically, to get this going, i need 2 textboxes and a button, one textbox in which I can input a binary number which, at the click of a button will be converted to decimal and appear in the second textbox,

or, a textbox in which I can input a decimal number which, at the click of a button will be converted to binary and the binary number will appear in the second textbox …

buuuut … i dont know the actionscript i need to add to the textboxes and the button so that they can use the code for conversion …

heeeellp!!! i understand i may be asking for a bit too much, like all the code basically, doing nothing myself, ill search, but if anyone has any good links for tutorials and all for my query, please tell me, or just gimme some code or ideas that i can implement

thank you so much! i appreciate it