Actionscript help

im new to flash and i want to make some project.
here how it goes.

i want to create two textfield the first one is an “input textfield” with var name “input”

the other one is “dynamic text” with var name “output”

my problem is that i want to create a function that when i type “abcdefgh…etc” on the input textfield the output textfield will be showing text “zyxwvuts”.

example:
input textfield = abcdefgh
output textfield = zyxwvuts

help me please i experimented some array but no luck.