June 17, 2004
Decimal to Hexadecimal to Binary to Octal Converter

A question in the macromedia.general.germany newsgroup about number systems brought to my attention that it's not as easy as it sounds to find a practical number system converter online. Sure, there are thousands of converters out there, but most of them are built in Javascript and require you to press buttons or even submit a form to the server - what a waste of bandwidth. So I quickly rolled my own in Flash which doesn't require any buttons as it updates while you are typing:

If you want to use this as a standalone tool, here you can download the swf (just use the right mouse button and select "save as...". If you want to learn how to convert between the different number systems in Flash here is the FLA source.

Posted at June 17, 2004 01:42 PM | Further reading

I am not sure if you searched enough :-)

Of course it is possible to do a javascript update to a textfield. Takes nearly no performance, you don't have to use a flashplugin, you could even do it xbrowser compatible.

After all this solution is fine if you need it directly for javascript ...

Posted by: Martin Heidegger on June 17, 2004 01:58 PM

Of course it's possible to do the same in Javascript - only none of the converters I found out there used this option. But feel free to add some good links here.

Posted by: Mario Klingemann on June 17, 2004 02:07 PM

Maybe we can put it here:

C:\Documents and Settings\Administrator\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\WindowSWF\

Posted by: snow on June 17, 2004 04:13 PM

Hi Mario,

here are both solutions... AS & JS... the flash part is done in another way then your but it also works fine and i added a field with char code.


Posted by: Erik Lembke on June 22, 2004 11:20 AM

I had no idea that you could actually do things like that with flash, im well impressed! have to get some more information on flash now! Thanks much for this post!

ITIL Consultant

Posted by: ITIL Consultant on July 9, 2004 06:36 PM
Post a comment

Email Address:



Remember info?

Thank you!

Most Visited Entries
Sketches, Works & Source Code
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german

My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers