Creating a calculator in Flash - Type in numbers - add movie clip images together

Hi,

I am trying to create a Hieroglyphic Calculator in Flash. An example is shown here http://www.isomedia.com/homes/mjohns/calc.htm written in Javascript.

I want to build a similar thing in Flash by Assigning Movie Clips to numbers up to 1 million with add and subtract functions.

I am not expecting anyone to code this but any suggestions on how it could be done or previous examples of a similar sort of thing would get me started.

Thankyou!
Ben